X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fbanking.inc;fp=includes%2Fbanking.inc;h=d3ca75bd5c4295992b88f4b270a21e47ece046a3;hb=c09be0dad6b05131e240349a375af7a4b7bf3444;hp=a8a1c62e6296b9608b4307699bf90fd8c48da728;hpb=089cd98e0008223e0418389a0f3cdd4b7e7f5bac;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()); } //----------------------------------------------------------------------------------