Hi,
I am making a solution for subscription to be get into GL account over different periods. This is 2013 verision, and i noticed they have built it in the newer versions of NAV.
I have created a codeunit that creates a General Journal and fill lines up and post it. It works fine - but I am in question were to put this function to trigger.
The functions have following parameters - Amount (from sales line), Date(for when posting should start), Period(over how many months). Maybe information from header would be nice aswell so i can write the invoice no. in the description.
When the client is making a sale they are using G/L Account - 01325, So i am only interrested in when they make a sales with type GL Acc.
I have looked at codeunit 80 - it seemed like a good place to add my function, but there are many thousands of lines to place it. Do you have any suggestions?
Thanks in advance