items_cart class has a logical bug, fixed by @kvvaradha.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 23 Jan 2019 10:26:41 +0000 (11:26 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 23 Jan 2019 10:26:41 +0000 (11:26 +0100)
includes/ui/items_cart.inc

index 9d7781deec929f42ff7b730b24e2335b5373c165..0e32165b0be23c17dda2b8fc05fcd11cbd26330d 100644 (file)
@@ -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))