X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep305.php;h=6711d9b7f4257bb7f1a8e42b9432a671760a478f;hb=a749d48dad4cdb0708ff272129338fa46fff7c2c;hp=bfbaf6b01acc1e41f0494d72b798288d182b4d1a;hpb=303eb17e9cdd9702eee9fdfcaee51e654a1da541;p=fa-stable.git diff --git a/reporting/rep305.php b/reporting/rep305.php index bfbaf6b0..6711d9b7 100644 --- a/reporting/rep305.php +++ b/reporting/rep305.php @@ -36,7 +36,7 @@ function getTransactions($from, $to) $sql = "SELECT DISTINCT ".TB_PREF."grn_batch.supplier_id, ".TB_PREF."purch_order_details.*, - ".TB_PREF."stock_master.description + ".TB_PREF."stock_master.description, ".TB_PREF."stock_master.inactive FROM ".TB_PREF."stock_master, ".TB_PREF."purch_order_details, ".TB_PREF."grn_batch @@ -80,7 +80,7 @@ function print_grn_valuation() $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); - $rep->Header(); + $rep->NewPage(); $res = getTransactions($from, $to); $total = $qtotal = $grandtotal = 0.0; @@ -108,7 +108,7 @@ function print_grn_valuation() $rep->NewLine(); $rep->TextCol(0, 1, $trans['item_code']); - $rep->TextCol(1, 2, $trans['description']); + $rep->TextCol(1, 2, $trans['description'].($trans['inactive']==1 ? " ("._("Inactive").")" : ""), -1); $rep->TextCol(2, 3, $trans['order_no']); $qdec = get_qty_dec($trans['item_code']); $rep->AmountCol(3, 4, $trans['quantity_received'], $qdec);