X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fbanking.inc;h=d3ca75bd5c4295992b88f4b270a21e47ece046a3;hb=f63c58475b057c9f4a05894a6935ea351b6d7af3;hp=a8a1c62e6296b9608b4307699bf90fd8c48da728;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git diff --git a/includes/banking.inc b/includes/banking.inc index a8a1c62e..d3ca75bd 100644 --- a/includes/banking.inc +++ b/includes/banking.inc @@ -104,7 +104,7 @@ function get_exchange_rate_to_home_currency($currency_code, $date_) function to_home_currency($amount, $currency_code, $date_) { $ex_rate = get_exchange_rate_to_home_currency($currency_code, $date_); - return $amount / $ex_rate; + return round($amount / $ex_rate, user_price_dec()); } //----------------------------------------------------------------------------------