From b531d4e8ab5f4d51c131c668d44e6024b952e884 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 16 Jul 2005 15:18:07 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Si=20facture=20abandonn=E9e,=20il=20ne?= =?UTF-8?q?=20faut=20pas=20mettre=20warning=20paiement=20retard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 01484d47352..0c1e302abec 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -911,7 +911,7 @@ else print ''.$langs->trans("Date").''; print "".dolibarr_print_date($fac->date,"%A %d %B %Y")."\n"; print ''.$langs->trans("DateClosing").'' . dolibarr_print_date($fac->date_lim_reglement,"%A %d %B %Y"); - if ($fac->paye == 0 && $fac->date_lim_reglement < (time() - $warning_delay)) print img_warning($langs->trans("Late")); + if ($fac->date_lim_reglement < (time() - $warning_delay) && ! $fac->paye && $fac->statut == 1 && ! $fac->am) print img_warning($langs->trans("Late")); print ""; print '';