Bug. Edit Journal -> orphaned attachments.
[fa-stable.git] / sales / includes / cart_class.inc
index 11b2029dc5a296b64cb0de748d27d345d58feeb7..e867cea0ec6324159096b64c761448d419907108 100644 (file)
@@ -21,7 +21,7 @@ iv)  a delivery note
 include_once($path_to_root . "/inventory/includes/inventory_db.inc");
 include_once($path_to_root . "/taxes/tax_calc.inc");
 
-class Cart extends \stdClass
+class Cart 
 {
        var $trans_type; // invoice, order, quotation, delivery note ...
        var $trans_no = array();// array (num1=>ver1,..) or 0 for new
@@ -82,6 +82,7 @@ class Cart extends \stdClass
        var $ex_rate;
 
        var $fixed_asset = false;
+       var $bo_policy = null;
 
        //-------------------------------------------------------------------------
        //
@@ -224,7 +225,7 @@ class Cart extends \stdClass
                                        $sodata = get_sales_order_header($this->order_no, ST_SALESORDER);
                                        $this->cust_ref = $sodata["customer_ref"];
                                // currently currency is hard linked to debtor account
-                                       $this->delivery_to = $sodata["deliver_to"];
+                                       $this->deliver_to = $sodata["deliver_to"];
                                        $this->delivery_address = $sodata["delivery_address"];
                                // child transaction reedition - update with parent info unless it is freehand
                                if (!$this->is_prepaid() && !$prepare_child) // this is read for view/reedition