+ if ($catt != $trans['cat_description'])
+ {
+ if ($catt != '')
+ {
+ $rep->NewLine(2, 3);
+ $rep->TextCol(0, 1, _('Total'));
+ $rep->TextCol(1, 7, $catt);
+ $rep->AmountCol(7, 8, $total, $dec);
+ $rep->Line($rep->row - 2);
+ $rep->NewLine();
+ $rep->NewLine();
+ $total = 0.0;
+ }
+ $rep->TextCol(0, 1, $trans['category_id']);
+ $rep->TextCol(1, 6, $trans['cat_description']);
+ $catt = $trans['cat_description'];
+ $rep->NewLine();
+ }