X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep204.php;h=2c8250cd3ba33d195ef7ce0aa277a227b02e5500;hb=45a035785b9a820621da56dec93078b3ccd9832e;hp=5521c7450e40eec5673b46c28e685fbadcbc07a6;hpb=80dd97a37f674cc3691fa04af4c29607067566b2;p=fa-stable.git diff --git a/reporting/rep204.php b/reporting/rep204.php index 5521c745..2c8250cd 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";