X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep401.php;fp=reporting%2Frep401.php;h=e72f163ce02037886435cd3e2cfd9f77c0e893c6;hb=8ea6c4dd0d9b31b3456d012b0c94339b801bee0c;hp=0113375efa720e1ed108f953520437f417c218d8;hpb=3ff9ed87cb909f19c8fe3e7dfda5df79d0c01a6c;p=fa-stable.git diff --git a/reporting/rep401.php b/reporting/rep401.php index 0113375e..e72f163c 100644 --- a/reporting/rep401.php +++ b/reporting/rep401.php @@ -40,8 +40,8 @@ function getTransactions($from, $to) ".TB_PREF."stock_master, ".TB_PREF."bom WHERE ".TB_PREF."stock_master.stock_id=".TB_PREF."bom.component - AND ".TB_PREF."bom.parent >= '$from' - AND ".TB_PREF."bom.parent <= '$to' + AND ".TB_PREF."bom.parent >= ".db_escape($from)." + AND ".TB_PREF."bom.parent <= ".db_escape($to)." ORDER BY ".TB_PREF."bom.parent, ".TB_PREF."bom.component";