ledger123 / runmyaccounts

SQL-Ledger Customizations by Run My Accounts
GNU General Public License v2.0
16 stars 9 forks source link

[IBP-399] Customer creation address field behavior #412

Closed bohte closed 10 months ago

bohte commented 12 months ago

Hello Armaghan!

Recently we got a request from client to deal with the problem he faced during "customer" creation. When one tries to create customer with specified address (first field): "Aeschenvorstadt 50 | Postfach" (see screenshot) image After creation value from address 1 is put as a Post office: image Yet, if one puts (for example) "Street 51" in address 1 field - then it is saved as address 1 which is expected.

Could You please clarify:

ledger123 commented 12 months ago

Hi Bohte,

Yes, this is intended functionality. I had added this when new address columns were added and its purpose was to move the postoffice information to new postoffice column automatically when an existing customer/vendor was edited and saved.

So if there is any thing in address1 and address2 containing 'post', it will be moved to postoffice. Please see the attached screen shot for the code (SL/CT.pm) which does this:

image

We can disable this by removing / commenting out this code.

So far these two fields (address1 and address2) come to my mind where I had implemented this.

Let me know if you need to do any adjustments.

Regards

bohte commented 12 months ago

Hello!

Thanks for clarification. Please, remove this behavior from mentioned fields (address1 and address2).

ledger123 commented 12 months ago

Hi,

Just removed this code in the attached commit. This commit is in the branch prefixed with this ticket number.

Please test and let me know and then I shall merge it into develop.

Regards

bohte commented 12 months ago

Please, merge it to develop and we will proceed with testing. Thanks!

ledger123 commented 12 months ago

Merged and pushed to github.

Regards