From: Joe Hunt Date: Mon, 5 Feb 2018 22:34:23 +0000 (+0100) Subject: Fixed a minor weird bug in QOH in inventory Planning Report X-Git-Tag: v2.4.4~9 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=2b58a999e31c48e47358d9c9e87b0f69849f029f;hp=2e95a5672e4cabeaba603da7ac1105c3acb865ea;p=fa-stable.git Fixed a minor weird bug in QOH in inventory Planning Report --- diff --git a/reporting/rep302.php b/reporting/rep302.php index bfb515f1..cdfd0e9a 100644 --- 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(IFNULL(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