X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep304.php;h=a525f33c505d15d241f628217bafae83a6042b8f;hb=b54fdb00859af85c72742d32ebc628ef52b81cec;hp=f1262a1873730d0d5602e7d2769d647cec0feb90;hpb=8ea6c4dd0d9b31b3456d012b0c94339b801bee0c;p=fa-stable.git diff --git a/reporting/rep304.php b/reporting/rep304.php index f1262a18..a525f33c 100644 --- a/reporting/rep304.php +++ b/reporting/rep304.php @@ -36,7 +36,7 @@ function getTransactions($category, $location, $fromcust, $from, $to) $sql = "SELECT ".TB_PREF."stock_master.category_id, ".TB_PREF."stock_category.description AS cat_description, ".TB_PREF."stock_master.stock_id, - ".TB_PREF."stock_master.description, + ".TB_PREF."stock_master.description, ".TB_PREF."stock_master.inactive, ".TB_PREF."stock_moves.loc_code, ".TB_PREF."debtor_trans.debtor_no, ".TB_PREF."debtors_master.name AS debtor_name, @@ -127,7 +127,7 @@ function print_inventory_sales() $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); - $rep->Header(); + $rep->NewPage(); $res = getTransactions($category, $location, $fromcust, $from, $to); $total = $grandtotal = 0.0; @@ -161,20 +161,20 @@ function print_inventory_sales() $trans['amt'] *= $rate; $cb = $trans['amt'] - $trans['cost']; $rep->NewLine(); - $rep->fontsize -= 2; + $rep->fontSize -= 2; $rep->TextCol(0, 1, $trans['stock_id']); if ($fromcust == ALL_NUMERIC) { - $rep->TextCol(1, 2, $trans['description']); + $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']); + $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; + $rep->fontSize += 2; $total += $trans['amt']; $total1 += $trans['cost']; $total2 += $cb;