Code cleanup (old code removed)
[fa-stable.git] / includes / ui / items_cart.inc
index b0d3a609cd30d5c9a9a53d5b63d6e04bf4fb6bf4..0f8b3c35462aefee00d8531d97dee54834742958 100644 (file)
@@ -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))
                        {