
I have created a new field in sales order and i want to transfer its value when posting to G/L Entry and CLE , I tried to give it the same number, name and type in SO and C/L Entry but it did not work . I did the same with PSI and it worked . I also tried to find any event subscriber in codeunit 80 but i did not find any, Can anyone tell how I could get this value in G/L Entry or the name of the event subscriber
Hi muaz deyab ,
You have to create that field into Gen. Journal Line table and Customer ledger entry table, after then you have to subscribed the Codeunit 12 functions to move your data OnAfterPost event from the Sales Order.
this is the one of the functions I am pasting here from the CU 12., Its responsible to insert or move data into GL entries table, In the same way we have another function in the same CU, see the below image, to send the data into Customer ledger entry table.