+
+ // Print totals for the debit and credit columns.
+ $rep->TextCol(3, 5, _("Total Debit / Credit"));
+ $rep->AmountCol(5, 6, $total_debit, $dec);
+ $rep->AmountCol(6, 7, $total_credit, $dec);
+ $rep->NewLine(2);
+
+ $rep->Font('bold');
+ $rep->TextCol(3, 5, _("Ending Balance"));
+ if ($total > 0.0)
+ $rep->AmountCol(5, 6, abs($total), $dec);
+ else
+ $rep->AmountCol(6, 7, abs($total), $dec);
+ $rep->Font();
+ $rep->Line($rep->row - $rep->lineHeight + 4);
+ $rep->NewLine(2, 1);
+
+ // Print the difference between starting and ending balances.
+ $net_change = ($total - $prev_balance);
+ $rep->TextCol(3, 5, _("Net Change"));
+ if ($total > 0.0)
+ $rep->AmountCol(5, 6, $net_change, $dec, 0, 0, 0, 0, null, 1, True);
+ else
+ $rep->AmountCol(6, 7, $net_change, $dec, 0, 0, 0, 0, null, 1, True);