projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e95a56
)
Fixed a minor weird bug in QOH in inventory Planning Report
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Mon, 5 Feb 2018 22:34:23 +0000
(23:34 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Mon, 5 Feb 2018 22:34:23 +0000
(23:34 +0100)
reporting/rep302.php
patch
|
blob
|
history
diff --git
a/reporting/rep302.php
b/reporting/rep302.php
index bfb515f1257ef238fdb0bb74b746eb3aa5fb148f..cdfd0e9a21e89d81a92422c3d063453f77f6d2ae 100644
(file)
--- a/
reporting/rep302.php
+++ b/
reporting/rep302.php
@@
-36,7
+36,7
@@
function getTransactions($category, $location)
item.stock_id,
item.description, item.inactive,
IF(move.stock_id IS NULL, '', move.loc_code) AS loc_code,
- SUM(IF
NULL(move.stock_id, 0
)) AS qty_on_hand
+ SUM(IF
(move.stock_id IS NULL, 0, move.qty
)) AS qty_on_hand
FROM (".TB_PREF."stock_master item,"
.TB_PREF."stock_category category)
LEFT JOIN ".TB_PREF."stock_moves move ON item.stock_id=move.stock_id