From 0dc570b927760e1351a7d31bd93bcf9a5df4d4fc Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Fri, 4 Dec 2009 18:28:09 +0000 Subject: [PATCH] False currency rate error on first opening of sales order entry, when customer_list is off - fixed. --- CHANGELOG.txt | 2 ++ sales/includes/cart_class.inc | 1 + 2 files changed, 3 insertions(+) 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(); -- 2.30.2