I am currently customizing the check remittance report and I’m trying to get it to total up the dollar value of the invoices before the cash discount is taken. I can get it to work unless the amount of invoices exceeds the number of lines on the remittance, in which case it only totals those currently contained in the report with the following expression =SUM([APPrintCheckDetailWithAdjdDoc.AdjdInvtMult]*[APPrintCheckDetailWithAdjdDoc.AdjdCuryOrigDocAmt]).
How can I get it to sum all of them? the APPayment DAC doesn’t appear to contain that amount anywhere so the report needs to add it up somehow. Any help is much appreciated.