From f344b266759f38a5e14f17c07f5e77a72516623f Mon Sep 17 00:00:00 2001 From: Kamel Khelifa Date: Fri, 16 Feb 2024 15:59:00 +0100 Subject: [PATCH] Not trancate the multicurrency rate shown on cards (even if the global MAIN_MAX_DECIMALS_SHOWN is set to 0) Case when the user set prcision to shown to 0 and have a multicurrency rate at 0.0015245 (Example: XAF <=> EURO) PR #28211 --- htdocs/core/class/html.form.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 8efb6d58f70c0..7b24aa5d5255d 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5563,9 +5563,9 @@ public function form_multicurrency_rate($page, $rate = '', $htmlname = 'multicur print ''; } else { if (!empty($rate)) { - print price($rate, 1, $langs, 1, 0); + print price($rate, 1, $langs, 0, 0); if ($currency && $rate != 1) { - print '   ('.price($rate, 1, $langs, 1, 0).' '.$currency.' = 1 '.$conf->currency.')'; + print '   ('.price($rate, 1, $langs, 0, 0).' '.$currency.' = 1 '.$conf->currency.')'; } } else { print 1;