Hello!
I need to change GL impact, according to customer category. I need to change account number when customer category is for foreign customers...
Does anybody have some example script? Or advice how to start with this task...
Thank you. How to approach customer category in script? In function cusomizeGlIpact parameters are transactionRecord, standarsLines, customLines and book
b
battk
01/29/2021, 2:53 PM
As an alternative, depending on which gl impact you want modified, you may want to setup the transaction correctly so that the correct accounts are impacted. You may be able to do something simple like change the account fields on payments to point to the correct account
b
beginner
01/29/2021, 2:57 PM
I want to modified on invoice. When I choose customer (which category can be domestic, foreign, etc) then in gl impact depending on customer category I want to change account
s
scottvonduhn
01/29/2021, 2:59 PM
The simplest way would be to use the entity field from the transactionRecord, then search on that as the customer internal id to get customer category (or whatever fields will help you determine if the customer is foreign or not).