X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fbanking.inc;fp=includes%2Fbanking.inc;h=59f0fe070743d5ca32141fbf489052c29bedf5de;hb=da128fc101cb020e2ab05680e6d14eb1a2131ef5;hp=301a37299426edc85eba5b78edc634a9ec780068;hpb=8e1244e235e91e9b59e4b65b85bc9fa0b215f4cb;p=fa-stable.git 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_);