X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fcart_class.inc;h=e867cea0ec6324159096b64c761448d419907108;hb=0b44975d1b3c8f3e3fb28d24d8b45b1a6f71d12c;hp=e19ea3160f0c68ea34b02dcdb65f73b5eb39df4a;hpb=c5e3e1a1d98fb715cd52e4e943ba39b5e3d58765;p=fa-stable.git diff --git a/sales/includes/cart_class.inc b/sales/includes/cart_class.inc index e19ea316..e867cea0 100644 --- a/sales/includes/cart_class.inc +++ b/sales/includes/cart_class.inc @@ -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 +class Cart { var $trans_type; // invoice, order, quotation, delivery note ... var $trans_no = array();// array (num1=>ver1,..) or 0 for new @@ -71,7 +71,7 @@ class Cart var $dimension_id; var $dimension2_id; var $payment; - var $payment_terms; // cached payment terms + var $payment_terms = array('cash_sale' => false, 'days_before_due' => 0); // cached payment terms var $credit; // prepayment mode: var $prepaid=false; // true for documents issued in prepayment mode @@ -82,6 +82,7 @@ class Cart var $ex_rate; var $fixed_asset = false; + var $bo_policy = null; //------------------------------------------------------------------------- // @@ -224,7 +225,7 @@ class Cart $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