G/l Entry Auto Generated Lines

Hello dears,

When I post a sales order or sales invoice or … multiple of records are auto generated (example Vat Line ) and inserted to g/l table…If you can help me…where can I find the code that inserts these records.

Thanks in advance.

hi oussama sabbouh ,

Have a look at following Codeunit , (closely watch them by using debugger)[;)] …

Code unit : Sales Post (yes/No) and Sales-Post …i.e 80, 81