- $grandtotal2 += $cb1;
- }
- if ($detail)
- {
- $rep->NewLine();
- $rep->fontsize -= 2;
- $rep->TextCol(0, 1, $stock_id);
- $rep->TextCol(1, 2, $stock_desc);
- $rep->AmountCol(2, 3, $amt, $dec);
- $rep->AmountCol(3, 4, $cost, $dec);
- $rep->AmountCol(4, 5, $cb, $dec);
- $rep->fontsize += 2;
-
- $rep->NewLine(2, 3);
- $rep->TextCol(0, 2, _('Total'));
- }
- $rep->AmountCol(2, 3, $total, $dec);
- $rep->AmountCol(3, 4, $total1, $dec);
- $rep->AmountCol(4, 5, $total2, $dec);
- if ($detail)
- {
- $rep->Line($rep->row - 2);
- $rep->NewLine();