projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added chinese installer translation and updated empty.po.
[fa-stable.git]
/
reporting
/
rep401.php
diff --git
a/reporting/rep401.php
b/reporting/rep401.php
index 0113375efa720e1ed108f953520437f417c218d8..341c2247a6655562c764e09d178f917de72bb363 100644
(file)
--- 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
".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";
ORDER BY
".TB_PREF."bom.parent,
".TB_PREF."bom.component";
@@
-77,7
+77,7
@@
function print_bill_of_material()
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
- $rep->
Header
();
+ $rep->
NewPage
();
$res = getTransactions($frompart, $topart);
$parent = '';
$res = getTransactions($frompart, $topart);
$parent = '';