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-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=0dc570b927760e1351a7d31bd93bcf9a5df4d4fc;p=textcart.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 f535328..39d85b7 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 b3d5ac9..17708a4 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();