Guys, all above answers are not the original intention.
Basically Sabina wants to have a back dated Open Invoices report.
Lets today is 3/29, but if he wants to know what invoice was open back on 1/1/2015, what kind of query can give him that result.
I used to write one in Oracle EBS, but I havent tried for SAP B1. The query should be based on the process from incoming payment transactions applied to invoices. It should be a very complicated one.
The flow should be something like this. For each of the invoices, basically the query needs to check all incoming payments and see which one is related to it, and decide if the payment date is before the required date or not, and then decide whether that payment should be applied or not. After loop all invoices and sub loop all incoming payments, basically you can get a list of invoices that are open.
Frank