From: Janusz Dobrowolski Date: Fri, 4 Dec 2009 18:28:09 +0000 (+0000) Subject: False currency rate error on first opening of sales order entry, when customer_list... X-Git-Tag: 2.3-final~1090 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=21d40bd05ccab312873c896dffb78a42372e184e;p=fa-stable.git False currency rate error on first opening of sales order entry, when customer_list is off - fixed. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index f535328b..39d85b75 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -22,6 +22,8 @@ $ -> Affected files 04-Dec-2009 Janusz Dobrowolski # [0000179] Cannot allocate ST_BANKPAYMENT type payments $ /includes/ui/allocation_cart.inc +# False currency rate error on first opening of sales order page when customer_list is off. +$ /sales/includes/cart_class.inc 04-Dec-2009 Joe Hunt # Print Statement prints balances in wrong place. diff --git a/sales/includes/cart_class.inc b/sales/includes/cart_class.inc index b3d5ac96..17708a47 100644 --- a/sales/includes/cart_class.inc +++ b/sales/includes/cart_class.inc @@ -152,6 +152,7 @@ class cart } else { $this->trans_type = $type; $this->trans_no = 0; + $this->customer_currency = get_company_currency(); // set new sales document defaults here if (get_global_customer() != ALL_TEXT) $this->customer_id = get_global_customer();