mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix arguments to price()
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2019 Nicolas ZABOURI <info@inovea-conseil.com>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -179,7 +180,7 @@ foreach ($listofstatus as $status) {
|
||||
print '<tr class="oddeven">';
|
||||
print '<td><a href="list.php?search_status='.$status.'">'.$donstatic->LibStatut($status, 4).'</a></td>';
|
||||
print '<td class="right">'.(!empty($nb[$status]) ? $nb[$status] : ' ').'</td>';
|
||||
print '<td class="right nowraponall amount">'.(!empty($nb[$status]) ? price($somme[$status], 'MT') : ' ').'</td>';
|
||||
print '<td class="right nowraponall amount">'.(!empty($nb[$status]) ? price($somme[$status], 1, '', 1, -1, 'MT') : ' ').'</td>';
|
||||
print '<td class="right nowraponall">'.(!empty($nb[$status]) ? price(price2num($somme[$status] / $nb[$status], 'MT')) : ' ').'</td>';
|
||||
$totalnb += (!empty($nb[$status]) ? $nb[$status] : 0);
|
||||
$total += (!empty($somme[$status]) ? $somme[$status] : 0);
|
||||
@@ -189,7 +190,7 @@ foreach ($listofstatus as $status) {
|
||||
print '<tr class="liste_total">';
|
||||
print '<td>'.$langs->trans("Total").'</td>';
|
||||
print '<td class="right nowraponall">'.$totalnb.'</td>';
|
||||
print '<td class="right nowraponall">'.price($total, 'MT').'</td>';
|
||||
print '<td class="right nowraponall">'.price($total, 1, "", 1, -1, 'MT').'</td>';
|
||||
print '<td class="right nowraponall">'.($totalnb ? price(price2num($total / $totalnb, 'MT')) : ' ').'</td>';
|
||||
print '</tr>';
|
||||
print "</table>";
|
||||
|
||||
Reference in New Issue
Block a user