From 89db61b110e8c40bdaadbdc08249980330c4c28d Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 10 Oct 2009 14:43:35 +0000 Subject: [PATCH] Fixed side bug on transaction numbers rewrite (edition of old delivery notes) --- sales/includes/cart_class.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sales/includes/cart_class.inc b/sales/includes/cart_class.inc index 4eeef444..b3d5ac96 100644 --- a/sales/includes/cart_class.inc +++ b/sales/includes/cart_class.inc @@ -121,7 +121,7 @@ class cart $this->delivery_to = $sodata["deliver_to"]; $this->delivery_address = $sodata["delivery_address"]; } - if (!$view && ($type!=ST_CUSTDELIVERY || $this->trans_link!=0)) { + if (!$view && ($type!=ST_CUSTCREDIT || $this->trans_link!=0)) { $src_type = get_parent_type($type); $src_details = 0; if ($src_type == ST_SALESORDER) { // get src data from sales_orders @@ -149,7 +149,7 @@ class cart } } } - } else { + } else { $this->trans_type = $type; $this->trans_no = 0; // set new sales document defaults here -- 2.30.2