Hi. I added a new field in the Sales Line table. In this field I have a different line amount than the original line amount field. I want the sum of all the lines of this field to be copied to a new field in the Customer Ledger Entry Table after the posting.
I also need a boolean field in the sales line table to be copied to a new field in the item ledger entry table after the posting.
How can I do those? If someone could help me it would be really great.
0
Answers
For a Navision developer this is a releatively easy job, for a enduser I would not recomend doing it yourself.
Are you a developer?
I haven't tried to change a codeunit yet. Can you help me with this?
The changes need to be made in codeunit 12, 22 and 80.
In codeunit 80 the salesheader is being processed into sales shipments, invoices and creditmemo's
Also the journal postings are prepared here.
the customer entry is prepared here
The Item entry here
You can add some new fields to the journal line tables 81 and 83 to copy your new data into the posting routines.
When you have done that you can start modifying the posting routines.
Just give a reply when you are ready for that.
I have added the fields.
One field from the sales line table must go to the customer ledger entry table (the sum of this field), and another field from the sales line must go to the item ledger entry table. The first field is decimal and the second is boolean.
In codeunit 12 look for this function
You can add your new field here
In codeunit 22 look for this code
Add your new field here.