Restore of the 4 include files in types.inc
[fa-stable.git] / includes / ui / items_cart.inc
index a984c5c558ac14caceca260d197f9433ebf96807..0f8b3c35462aefee00d8531d97dee54834742958 100644 (file)
@@ -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))
                        {