Transfer custom fields from SalesHeader / Detail to Invoice

Hi Everyone,

I have 3 custom fields on the sales header (SORDER) and sales lines (SORDERP).  I also have the same fields on the invoice tables.  When the order is invoiced I would like to transfer the values of these fields from the order to the corresponding invoice.  I imagine I would need to create an entry point but I'm really not sure where or which one I should use.  I'm relatively new to Sage X3 and I'm not looking for a detailed answer as I like to figure things out on my own but if someone can point me in the right direction it would be greatly appreciated.

Thank you very much in advance,

Mike

Parents
  • I assume you want them to transfer if the user clicks the invoice button on function GESSOH and when someone selects an order from the left list in function GESSIH?

    The transfer of class information is easy to trace when you start following the flow of the supervisor and the "object" execution. I would suggest looking under label PICKE in the SUBSIHC process for SO* left list selection, you will find what you are looking for there. GACTION is the indicator of an entry point...

  • Hi Regard,

    Just wanted to let you know I've decided to use another approach to satisfy this requirement.  These fields are only needed on an export so I'm able to simply just pull them from the original order directly.

    Thanks again for your help though,

    Mike

  • Good day Mike,

    You are welcome. Sometimes it is easier to follow the flow of execution using OpenLog('TMP',1), it creates a trace log in the TMP folder of all "Gosub" and "Call" commands in the code till you stop it using CloseLog(). You can use it in a section  of yours code or while in an existing function from the calculator before executing a another function. The two input parameters are described more in the help file.

    Regard.

Reply
  • Good day Mike,

    You are welcome. Sometimes it is easier to follow the flow of execution using OpenLog('TMP',1), it creates a trace log in the TMP folder of all "Gosub" and "Call" commands in the code till you stop it using CloseLog(). You can use it in a section  of yours code or while in an existing function from the calculator before executing a another function. The two input parameters are described more in the help file.

    Regard.

Children
No Data