Hello
My client has asked me to replicate the Aged Debt report receivables report in SQL as the current NAV report they use does not include all the information they need.
I have located that the report uses the Customer Ledger and Detailed Customer Ledger tables.
I have also received the C/AL code behind the report from our NAV vendor. The C/AL code references CALCFIELDS "Remaining Amt." which I am informed by my vendor this is what's needed to calculate the balance for a customers aged debt. However, my vendor is unable to provide me with the calculation and criteria behind this calcfield to calculate the remaining amt. I need to replicate the CALCFIELD "Remaining Amt." in SQL to be able to complete the report. I would be very grateful if someone could provide me with the calculation or advise me whether replicating the Aged Debt report is possible in SQL.
Many thanks in advance.
*This post is locked for comments