False currency rate error on first opening of sales order entry, when customer_list...
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 4 Dec 2009 18:28:09 +0000 (18:28 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 4 Dec 2009 18:28:09 +0000 (18:28 +0000)
fixed.

CHANGELOG.txt
sales/includes/cart_class.inc

index f535328be12c023d28284608a9cc6b37c75c117b..39d85b75f5880aa76ec230362a3330c607589f25 100644 (file)
@@ -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.
index b3d5ac966a19d3fd17af6542801342daa0d2c0d5..17708a4747180abac953a5be73384da771185279 100644 (file)
@@ -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();