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:
b359f53
)
Top manufactored dashboard shows wrong statistics. Fixed
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Tue, 7 Nov 2017 13:26:49 +0000
(14:26 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Tue, 7 Nov 2017 13:26:49 +0000
(14:26 +0100)
includes/dashboard.inc
patch
|
blob
|
history
diff --git
a/includes/dashboard.inc
b/includes/dashboard.inc
index b9799751a80782b156313e860aabe2aa98c8a5d4..9acfc45dd80b97e09b4b2560b4664ea7850c59d1 100644
(file)
--- a/
includes/dashboard.inc
+++ b/
includes/dashboard.inc
@@
-272,7
+272,7
@@
function stock_top($today, $limit=10, $width="33", $type=0, &$pg=null)
SUM(qty) AS qty FROM ".TB_PREF."stock_master AS s, ".TB_PREF."stock_moves AS m
WHERE s.stock_id=m.stock_id ";
if ($type == 1)
- $sql .= "AND s.mb_flag='M' ";
+ $sql .= "AND s.mb_flag='M'
AND m.qty > 0
";
elseif ($type == 2)
$sql .= "AND s.mb_flag='F' ";
}