X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep301.php;h=3b091cde1da032217492d436284d6a298829e37e;hb=cceb107ab3e8db0b400aeb7b98d0360e06ba8dae;hp=d476ec9a98cd2f3e568a27f763501c4cb9db2ccc;hpb=80dd97a37f674cc3691fa04af4c29607067566b2;p=fa-stable.git diff --git a/reporting/rep301.php b/reporting/rep301.php index d476ec9a..3b091cde 100644 --- a/reporting/rep301.php +++ b/reporting/rep301.php @@ -52,9 +52,9 @@ function getTransactions($category, $location) ".TB_PREF."stock_master.description HAVING SUM(".TB_PREF."stock_moves.qty) != 0"; if ($category != 0) - $sql .= " AND ".TB_PREF."stock_master.category_id = '$category'"; + $sql .= " AND ".TB_PREF."stock_master.category_id = ".db_escape($category); if ($location != 'all') - $sql .= " AND ".TB_PREF."stock_moves.loc_code = '$location'"; + $sql .= " AND ".TB_PREF."stock_moves.loc_code = ".db_escape($location); $sql .= " ORDER BY ".TB_PREF."stock_master.category_id, ".TB_PREF."stock_master.stock_id"; @@ -76,7 +76,7 @@ function print_inventory_valuation_report() include_once($path_to_root . "/reporting/includes/excel_report.inc"); else include_once($path_to_root . "/reporting/includes/pdf_report.inc"); - + $detail = !$detail; $dec = user_price_dec(); if ($category == ALL_NUMERIC)