les calculs d'arrondis avec les tva sont parfois étranges et j'ai des factures impossible à classer dans payees pasque il reste 0,000032 eur à payer ... d'ou le round pour faire apparaitree quand meme le lien classer payer

This commit is contained in:
erics 2004-01-18 18:35:58 +00:00
parent 05c153260d
commit 6cd2605aac

View File

@ -489,7 +489,7 @@ else
print '<td align="center" width="20%">-</td>'; print '<td align="center" width="20%">-</td>';
} }
if ($obj->statut == 1 && abs($resteapayer == 0) && $obj->paye == 0 && $user->societe_id == 0) if ($obj->statut == 1 && abs(round($resteapayer == 0)) && $obj->paye == 0 && $user->societe_id == 0)
{ {
print "<td align=\"center\" width=\"20%\"><a href=\"$PHP_SELF?facid=$facid&amp;action=payed\">Classer 'Payée'</a></td>"; print "<td align=\"center\" width=\"20%\"><a href=\"$PHP_SELF?facid=$facid&amp;action=payed\">Classer 'Payée'</a></td>";
} }