From: Janusz Dobrowolski Date: Sat, 10 Oct 2009 14:43:35 +0000 (+0000) Subject: Fixed side bug on transaction numbers rewrite (edition of old delivery notes) X-Git-Tag: v2.4.2~19^2~1148 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=89db61b110e8c40bdaadbdc08249980330c4c28d;p=fa-stable.git Fixed side bug on transaction numbers rewrite (edition of old delivery notes) --- 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