CNR2016
I am building a query expression using filters , in this case to calculate monies due to clients.
Each record in new_dbfmlivedata has a lookup to account, (new_licenceid). this determines which credits and debits are for which customer.
In my code I only have one credit and one debit filter, although there will be more credit and debit filters.
My question is, is there a way to only return records to the _dbfmtoprocess where the sum of the credits are greater than the sum of the debts for each of the customers ( new_licenceid)