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:
parent
05c153260d
commit
6cd2605aac
@ -489,7 +489,7 @@ else
|
||||
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&action=payed\">Classer 'Payée'</a></td>";
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user