From b15b7d791b22a0e32d0d5fa6a8a1594e1399abff Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 3 Sep 2005 12:52:57 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Le=20warning=20tient=20compte=20du=20d?= =?UTF-8?q?=E9lai=20de=20tol=E9rance?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/compta/facture/note.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture/note.php b/htdocs/compta/facture/note.php index 3ab1a36adb6..aa1135ffb74 100644 --- a/htdocs/compta/facture/note.php +++ b/htdocs/compta/facture/note.php @@ -112,7 +112,7 @@ if ($_GET["facid"]) print ''.$langs->trans("Date").''; print ''.dolibarr_print_date($fac->date,"%A %d %B %Y").''; 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() - $conf->facture->client->warning_delay) && ! $fac->paye && $fac->statut == 1 && ! $fac->am) print img_warning($langs->trans("Late")); print ""; // Conditions et modes de réglement