+ $rep->NewLine();
+ $rep->Font('bold');
+
+ //$prev = get_balance(null, $dimension, $dimension2, $begin, $from, false, false);
+ //$curr = get_balance(null, $dimension, $dimension2, $from, $to, true, true);
+ //$tot = get_balance(null, $dimension, $dimension2, $begin, $to, false, true);
+
+ if ($balances == 0)
+ {
+ $rep->TextCol(0, 2, _("Total"));
+ $rep->TextCol(2, 3, number_format2($pdeb, $dec));
+ $rep->TextCol(3, 4, number_format2($pcre, $dec));
+ $rep->TextCol(4, 5, number_format2($cdeb, $dec));
+ $rep->TextCol(5, 6, number_format2($ccre, $dec));
+ $rep->TextCol(6, 7, number_format2($tdeb, $dec));
+ $rep->TextCol(7, 8, number_format2($tcre, $dec));
+ $rep->NewLine();
+ }
+ $rep->TextCol(0, 2, _("Ending Balance"));
+
+ if ($pbal >= 0.0)
+ $rep->TextCol(2, 3, number_format2($pbal, $dec));
+ else
+ $rep->TextCol(3, 4, number_format2(abs($pbal), $dec));
+ if ($cbal >= 0.0)
+ $rep->TextCol(4, 5, number_format2($cbal, $dec));
+ else
+ $rep->TextCol(5, 6, number_format2(abs($cbal), $dec));
+ if ($tbal >= 0.0)
+ $rep->TextCol(6, 7, number_format2($tbal, $dec));
+ else
+ $rep->TextCol(7, 8, number_format2(abs($tbal), $dec));
+
+ $rep->Line($rep->row - 6);
+