I am creating an Aging report that uses 4 sub reports to get payment, adjustment, dispute and credit transactions. The report is Grouped by Invoice number. After the sub reports are processed (located in the group footers), the main report calculates the total net amount using shared variables. The variables are calculated when each of the sub reports is processed and are used to calculate the total net amount (located in the group footer after the sub reports) on the main report. Here is the calculation for total net:
shared numbervar SumAmount := Sum ({INVOICE_SUMMARY.INS_CURRENT_CHARGES}, {INVOICES.INV_INVOICE_NUMBER}) - {@PymtAmt} - {@DisputeAmt} - {@AdjustmentAmt} - {@OCCAmt};
sumAmount
How can I suppress printing of the information for an invoice on the main report and the sub report information when the total net amount is zero?
shared numbervar SumAmount := Sum ({INVOICE_SUMMARY.INS_CURRENT_CHARGES}, {INVOICES.INV_INVOICE_NUMBER}) - {@PymtAmt} - {@DisputeAmt} - {@AdjustmentAmt} - {@OCCAmt};
sumAmount
How can I suppress printing of the information for an invoice on the main report and the sub report information when the total net amount is zero?