I need to join 3 tables Sales Line, Item Ledger Entry, Customer Ledger Entry to find Sales by Product Group Code and find Sales Ageing(how fast the money has been recovered?).
Can someone tell me what is the relation between these 3 tables: Sales Line, Item Ledger Entry, Customer Ledger Entry and how to join them?
Also about Sales Ageing, does anyone know how to calculate it?
Instead of Sales line you should be using Sales Invoice Line table. Sales line table stores un posted data while posted invoice data is stored in Sales invoice line.
Thanks for the reply. I need to generate 2 reports:
Sales by Product Group and Customer
The time it take to get payment from the date I raised invoice
For the first report, it seems from your reply that I need to use Sales Invoice Line. How can I get Product Group? For the second report, how do i know the payment date from the invoice date?
I had a look at Item Ledger and Customer Ledger table. There are values like 1 , 2, 3 etc in Document Type(In Customer Ledger) and Entry Type(In Item Ledger) and I cant find any master table to know which no corresponds to which type of entry.
So for e.g. how do I know which no corresponds to “Sales” Entry Type?