Hi All,
I was working on a customization that required the sorting of customer transactions on report by invoice number then by date. After doing that, I found out that the balance was not calculating as it should be, like for every next balance, it would contain previous balance + next (credit or debit).
Any ideas how to fix this?
Regards,
Ali
Hi Ali,
We are not able to know what coding you have used to build your report. Can you share some information? Then we might be able to help you.
Hi Andre,
I've added 2 new columns in Customer account statement report, Payment and Credit note and populating the value respectively. For the invoice column it now contains multiple values of same invoices as well. What I want to do is to sort the data with respect to invoice column and then by date. In this snapshot, balances are calculating incorrectly. May be because it is still ordering them on date basis.
I've made changes in DP class of customer account statement report, attached here is the snapshot.
Where it builds the temporary data, you have to change the fetch order of the source table(s) to sort by invoice; then date. I do think it calculates the balance columns in that part.
Yes this is what I did but with a twist. I copied data from actual tmp table to another tmp table using order by Invoice then Date. Then I flushed the original tmp table and re-inserted the records in that table.
Ali Sajjad
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
CA Neeraj Kumar 1,922
André Arnaud de Cal... 835 Super User 2025 Season 2