Fix: rounding
This commit is contained in:
parent
4804530468
commit
d892f36fe8
@ -481,7 +481,7 @@ for ($mois = 1+$nb_mois_decalage ; $mois <= 12+$nb_mois_decalage ; $mois++)
|
|||||||
print '<td align="right"> ';
|
print '<td align="right"> ';
|
||||||
if ($decaiss_ttc[$case] != 0)
|
if ($decaiss_ttc[$case] != 0)
|
||||||
{
|
{
|
||||||
print '<a href="clientfourn.php?year='.$annee_decalage.'&month='.$mois_modulo.'">'.price($decaiss_ttc[$case]).'</a>';
|
print '<a href="clientfourn.php?year='.$annee_decalage.'&month='.$mois_modulo.'">'.price($decaiss_ttc[$case],'MT').'</a>';
|
||||||
$totsorties[$annee]+=$decaiss_ttc[$case];
|
$totsorties[$annee]+=$decaiss_ttc[$case];
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
@ -489,7 +489,7 @@ for ($mois = 1+$nb_mois_decalage ; $mois <= 12+$nb_mois_decalage ; $mois++)
|
|||||||
print '<td align="right"> ';
|
print '<td align="right"> ';
|
||||||
if ($encaiss_ttc[$case] != 0)
|
if ($encaiss_ttc[$case] != 0)
|
||||||
{
|
{
|
||||||
print '<a href="clientfourn.php?year='.$annee_decalage.'&month='.$mois_modulo.'">'.price($encaiss_ttc[$case]).'</a>';
|
print '<a href="clientfourn.php?year='.$annee_decalage.'&month='.$mois_modulo.'">'.price($encaiss_ttc[$case],'MT').'</a>';
|
||||||
$totentrees[$annee]+=$encaiss_ttc[$case];
|
$totentrees[$annee]+=$encaiss_ttc[$case];
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
@ -505,8 +505,8 @@ print '<tr class="liste_total"><td>'.$langs->trans("TotalTTC").'</td>';
|
|||||||
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
||||||
{
|
{
|
||||||
$nbcols+=2;
|
$nbcols+=2;
|
||||||
print '<td align="right">'.(isset($totsorties[$annee])?price($totsorties[$annee]):' ').'</td>';
|
print '<td align="right">'.(isset($totsorties[$annee])?price($totsorties[$annee],'MT'):' ').'</td>';
|
||||||
print '<td align="right">'.(isset($totentrees[$annee])?price($totentrees[$annee]):' ').'</td>';
|
print '<td align="right">'.(isset($totentrees[$annee])?price($totentrees[$annee],'MT'):' ').'</td>';
|
||||||
}
|
}
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
@ -523,7 +523,7 @@ for ($annee = $year_start ; $annee <= $year_end ; $annee++)
|
|||||||
print '<td align="right" colspan="2"> ';
|
print '<td align="right" colspan="2"> ';
|
||||||
if (isset($totentrees[$annee]) || isset($totsorties[$annee]))
|
if (isset($totentrees[$annee]) || isset($totsorties[$annee]))
|
||||||
{
|
{
|
||||||
print price($totentrees[$annee]-$totsorties[$annee]).'</td>';
|
print price($totentrees[$annee]-$totsorties[$annee],'MT').'</td>';
|
||||||
// print '<td> </td>';
|
// print '<td> </td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user