From a854d955b826c7168cce80935570dbb6a975ae86 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 23 Jun 2020 16:08:31 +0200 Subject: [PATCH] Fix rounding --- htdocs/projet/element.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/projet/element.php b/htdocs/projet/element.php index 6878efcd6ab..2566dcb104d 100644 --- a/htdocs/projet/element.php +++ b/htdocs/projet/element.php @@ -826,7 +826,7 @@ print ''; if ($total_revenue_ht) { print ''; print ''.$langs->trans("Margin").''; - print ''.price(price2num($balance_ht / $total_revenue_ht, 'MT')).''; + print ''.round(100 * $balance_ht / $total_revenue_ht, 1).'%'; print ''; print ''; }