X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep204.php;h=03d1cd864303d1e51979dda8ae29cfa40caee272;hb=d9b4de9d7e9d3ba77f6ece752fd6cc988effd8f1;hp=5521c7450e40eec5673b46c28e685fbadcbc07a6;hpb=80dd97a37f674cc3691fa04af4c29607067566b2;p=fa-stable.git diff --git a/reporting/rep204.php b/reporting/rep204.php index 5521c745..03d1cd86 100644 --- a/reporting/rep204.php +++ b/reporting/rep204.php @@ -48,8 +48,9 @@ function getTransactions($fromsupp) AND ".TB_PREF."grn_batch.id = ".TB_PREF."grn_items.grn_batch_id AND ".TB_PREF."grn_items.po_detail_item = ".TB_PREF."purch_order_details.po_detail_item AND qty_recd-quantity_inv <>0 "; + if ($fromsupp != ALL_NUMERIC) - $sql .= "AND ".TB_PREF."grn_batch.supplier_id ='" . $fromsupp . "' "; + $sql .= "AND ".TB_PREF."grn_batch.supplier_id =".db_escape($fromsupp)." "; $sql .= "ORDER BY ".TB_PREF."grn_batch.supplier_id, ".TB_PREF."grn_batch.id"; @@ -90,7 +91,7 @@ function print_outstanding_GRN() $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); - $rep->Header(); + $rep->NewPage(); $Tot_Val=0; $Supplier = '';