From: Joe Hunt Date: Wed, 3 Feb 2010 15:26:36 +0000 (+0000) Subject: Exchange rate bug when searching a non existing customer X-Git-Tag: 2.3-final~993 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=da128fc101cb020e2ab05680e6d14eb1a2131ef5;p=fa-stable.git Exchange rate bug when searching a non existing customer --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 3b5d0b8d..22ed8c5e 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 301a3729..59f0fe07 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_);