Change City & PLZ

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palme
    Junior Member
    • Apr 2016
    • 5

    Change City & PLZ

    Hi, how can ich change City <-> PLZ that is PLZ first in account view
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    client/src/views/fields/address.js

    client/res/templates/fields/address/edit.tpl
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • Palme
      Junior Member
      • Apr 2016
      • 5

      #3
      Thx. edit was easy - i change div and rdy
      but adress i have
      ------------------------------------------------------------------------------------------------

      if (cityValue || stateValue || postalCodeValue) {
      if (html != '') {
      html += '<br>'
      }
      if (cityValue) {
      html += cityValue;
      }
      if (stateValue) {
      if (cityValue) {
      html += ', ';
      }
      html += stateValue;

      }
      if (postalCodeValue) {
      if (cityValue || stateValue) {
      html += ' ';
      }
      html += postalCodeValue;
      }

      }
      ----------------------------------------------------------------------------------------------------
      change
      ---------------------------------------------------------------------------------------------------
      if (postalCodeValue || cityValue || stateValue ) {
      if (html != '') {
      html += '<br>'
      }
      if (postalCodeValue) {
      if (cityValue || stateValue) {
      html += ' ';
      }
      html += postalCodeValue;

      }
      if (cityValue) {
      html += cityValue;
      }
      if (stateValue) {
      if (cityValue) {
      html += ', ';
      }
      html += stateValue;
      }

      }

      ----------------------------------------------------------------------------------------------------
      and i missng a blanc/space btw. plz and city

      wh is wrong?
      Last edited by Palme; 04-09-2016, 01:23 PM.

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        html += postalCodeValue + ' ';
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        • Palme
          Junior Member
          • Apr 2016
          • 5

          #5
          Click image for larger version

Name:	deutsche adresse.jpg
Views:	329
Size:	6.0 KB
ID:	22164
          Ich habe nach dem Update auf 4 Adressformate wieder ein deutsches Format gefixt. Wenn jemand es braucht stelle ich es ein.
          Last edited by Palme; 05-25-2016, 12:23 PM.

          Comment

          Working...