How to calculate the outstanding balance of a customer as of date?
(Let’s say: - today is 10-aug. but I want to know what the o/s balance of a customer was on 15-May)
My requirement:-
Need to create a report which has the provision to select date range (i.e.:- 10-May to 14-Jul). I want to show the opening balance as on 10-May, then show all the transaction that hits the customer account within the specified period and then show the calculated closing balance of customer as on 14-Jul.
Can anyone suggest me the query to find out the opening balance of customer as on date?