From: Joe Hunt Date: Mon, 14 Sep 2009 21:46:40 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v2.4.2~19^2~1245 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=39b91d63e429ec5c7211a71fa0c55d6883e5cf49;p=fa-stable.git *** empty log message *** --- diff --git a/sales/includes/cart_class.inc b/sales/includes/cart_class.inc index d85136c5..de858816 100644 --- a/sales/includes/cart_class.inc +++ b/sales/includes/cart_class.inc @@ -100,7 +100,8 @@ class cart global $SysPrefs, $Refs; if (!is_array($trans_no)) $trans_no = array($trans_no); - if ($trans_no[0]) { + if ($trans_no[0]) + { if ($type == ST_SALESORDER || $type == ST_SALESQUOTE) { // sales order || sales quotation read_sales_order($trans_no[0], $this, $type); if ($view) { // prepare for DN/IV entry @@ -120,7 +121,7 @@ class cart $this->delivery_to = $sodata["deliver_to"]; $this->delivery_address = $sodata["delivery_address"]; } - if (!$view && ($type!=11 || $this->trans_link!=0)) { + if (!$view && ($type!=ST_CUSTDELIVERY || $this->trans_link!=0)) { $src_type = get_parent_type($type); $src_details = 0; if ($src_type == ST_SALESORDER) { // get src data from sales_orders