X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fitems_cart.inc;h=0f8b3c35462aefee00d8531d97dee54834742958;hb=21694d93663dd2c41c7020c6a646baf00cdaa4ed;hp=a984c5c558ac14caceca260d197f9433ebf96807;hpb=21290a4a16ca78fe736f62cf1cb039c06cb53fca;p=fa-stable.git diff --git a/includes/ui/items_cart.inc b/includes/ui/items_cart.inc index a984c5c5..0f8b3c35 100644 --- a/includes/ui/items_cart.inc +++ b/includes/ui/items_cart.inc @@ -30,7 +30,8 @@ class items_cart var $memo_; var $person_id; var $branch_id; - + var $reference; + function items_cart($type) { $this->trans_type = $type; @@ -217,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)) {