From: Janusz Dobrowolski Date: Thu, 28 Oct 2010 16:13:15 +0000 (+0000) Subject: Fixed db error on free hand credit invoice reedition. X-Git-Tag: v2.4.2~19^2~531 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=698b53eff70b06a1eb4ff1e667c072f48776e1e7;p=fa-stable.git Fixed db error on free hand credit invoice reedition. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index a6592f3f..f1a56419 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -29,6 +29,8 @@ $ /admin/inst_theme.php /install/index.php # Fixed mailing problems under PHP with Suhoshin patch (Michael Hahn) $ /reporting/includes/class.mail.inc +# Fixed db error on freehand credit invoice reedition. +$ /sales/includes/cart_class.inc ------------------------------- Release 2.3 RC3 -------------------------------- 26-Oct-2010 Janusz Dobrowolski diff --git a/sales/includes/cart_class.inc b/sales/includes/cart_class.inc index 286cc3fd..286f9f37 100644 --- a/sales/includes/cart_class.inc +++ b/sales/includes/cart_class.inc @@ -185,10 +185,10 @@ class cart // $this->customer_currency = $sodata["curr_code"]; $this->delivery_to = $sodata["deliver_to"]; $this->delivery_address = $sodata["delivery_address"]; - } // child transaction reedition - update with parent info unless it is freehand - if (!$no_edit) - $this->set_parent_constraints($sodata, $trans_no[0]); + if (!$no_edit) + $this->set_parent_constraints($sodata, $trans_no[0]); + } } // prepare qtys for derivative document entry (not used in display) if($no_edit) {