From 80ca7521c46b75b495e626835207227194d6e200 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 23 Jan 2019 11:26:41 +0100 Subject: [PATCH] items_cart class has a logical bug, fixed by @kvvaradha. --- includes/ui/items_cart.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/ui/items_cart.inc b/includes/ui/items_cart.inc index 9d7781de..0e32165b 100644 --- a/includes/ui/items_cart.inc +++ b/includes/ui/items_cart.inc @@ -101,7 +101,7 @@ class items_cart $low_stock = array(); - if (!$SysPrefs->allow_negative_stock() || is_fixed_asset($line_item->mb_flag)) + if (!$SysPrefs->allow_negative_stock()) { foreach ($this->line_items as $line_no => $line_item) if (has_stock_holding($line_item->mb_flag) || is_fixed_asset($line_item->mb_flag)) -- 2.30.2