+ $cb = $trans['amt'] - $trans['cost'];
+ $rep->NewLine();
+ $rep->fontSize -= 2;
+ $rep->TextCol(0, 1, $trans['stock_id']);
+ if ($fromcust == ALL_TEXT)
+ {
+ $rep->TextCol(1, 2, $trans['description'].($trans['inactive']==1 ? " ("._("Inactive").")" : ""), -1);
+ $rep->TextCol(2, 3, $trans['debtor_name']);
+ }
+ else
+ $rep->TextCol(1, 3, $trans['description'].($trans['inactive']==1 ? " ("._("Inactive").")" : ""), -1);
+ $rep->AmountCol(3, 4, $trans['qty'], get_qty_dec($trans['stock_id']));
+ $rep->AmountCol(4, 5, $trans['amt'], $dec);
+ $rep->AmountCol(5, 6, $trans['cost'], $dec);
+ $rep->AmountCol(6, 7, $cb, $dec);
+ $rep->fontSize += 2;