From: Joe Hunt Date: Tue, 7 Nov 2017 14:27:29 +0000 (+0100) Subject: Rerun of Manufactored Items, Dashboard. Produced Items. X-Git-Tag: v2.4.3~5 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=f8219593c85e1020093b93972386fd477675504f Rerun of Manufactored Items, Dashboard. Produced Items. --- diff --git a/includes/dashboard.inc b/includes/dashboard.inc index 9acfc45d..bb6e6e25 100644 --- 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' AND m.qty > 0 "; + $sql .= "AND s.mb_flag='M' AND m.type <> ".ST_CUSTDELIVERY." AND m.type <> ".ST_CUSTCREDIT." "; elseif ($type == 2) $sql .= "AND s.mb_flag='F' "; }