From 92092d227a3098dc15937e40ca9ee794e5b381ac Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 3 Feb 2010 15:26:36 +0000 Subject: [PATCH] Exchange rate bug when searching a non existing customer --- CHANGELOG.txt | 2 ++ includes/banking.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 3b5d0b8..22ed8c5 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -27,6 +27,8 @@ $ /sales/includes/db/sales_delivery_db.inc price format uses thousands seperator. A couple of minor errors too. $ /purchasing/includes/db/grn_db.inc /purchasing/includes/db/invoices_db.inc +# Exchange rate bug when searching a non existing customer +$ /includes/banking.inc 03-Feb-2010 Chaitanya/Joe + Added a Profit and Loss Drilldown page and changed menu link diff --git a/includes/banking.inc b/includes/banking.inc index 301a372..59f0fe0 100644 --- a/includes/banking.inc +++ b/includes/banking.inc @@ -90,7 +90,7 @@ function get_supplier_currency($supplier_id) function get_exchange_rate_from_home_currency($currency_code, $date_) { - if ($currency_code == get_company_currency()) + if ($currency_code == get_company_currency() || $currency_code == null) return 1.0000; $date = date2sql($date_); -- 2.30.2