From 6cd2605aace902e31af0a16f7dae8ff7a7675fca Mon Sep 17 00:00:00 2001 From: erics Date: Sun, 18 Jan 2004 18:35:58 +0000 Subject: [PATCH] =?UTF-8?q?les=20calculs=20d'arrondis=20avec=20les=20tva?= =?UTF-8?q?=20sont=20parfois=20=E9tranges=20et=20j'ai=20des=20factures=20i?= =?UTF-8?q?mpossible=20=E0=20classer=20dans=20payees=20pasque=20il=20reste?= =?UTF-8?q?=200,000032=20eur=20=E0=20payer=20...=20d'ou=20le=20round=20pou?= =?UTF-8?q?r=20faire=20apparaitree=20quand=20meme=20le=20lien=20classer=20?= =?UTF-8?q?payer?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/fourn/facture/fiche.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 7d2eb1173e7..13f7e36ff39 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -489,7 +489,7 @@ else print '-'; } - 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 "Classer 'Payée'"; }