X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fitems_cart.inc;h=0f8b3c35462aefee00d8531d97dee54834742958;hb=21694d93663dd2c41c7020c6a646baf00cdaa4ed;hp=b0d3a609cd30d5c9a9a53d5b63d6e04bf4fb6bf4;hpb=273c1123941a13bc2975756732d0216150d88380;p=fa-stable.git diff --git a/includes/ui/items_cart.inc b/includes/ui/items_cart.inc index b0d3a609..0f8b3c35 100644 --- a/includes/ui/items_cart.inc +++ b/includes/ui/items_cart.inc @@ -218,7 +218,9 @@ class line_item function check_qoh($location, $date_, $reverse) { - if (!sys_prefs::allow_negative_stock()) + global $SysPrefs; + + if (!$SysPrefs->allow_negative_stock()) { if (has_stock_holding($this->mb_flag)) {