From bb4ed2f9ab294bf9cf4c6531e66324597c90a60b Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Jan 2010 14:08:39 +0000 Subject: [PATCH] Fix: Warning should not appears for invoice closed --- ChangeLog | 1 + htdocs/compta/index.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index bd078e9937d..45e7ee0bf93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -34,6 +34,7 @@ For users: - Fix: Change error management when adding already used supplier ref for a product. - Fix: Running sending-email.php +- Fix: Warning should not appears for invoice closed For developers: - Qual: Reorganize /dev directory. diff --git a/htdocs/compta/index.php b/htdocs/compta/index.php index 4fb482f2ec4..e5d8ea37d9e 100644 --- a/htdocs/compta/index.php +++ b/htdocs/compta/index.php @@ -348,7 +348,7 @@ if ($conf->facture->enabled && $user->rights->facture->lire) print $facturestatic->getNomUrl(1,''); print ''; print ''; - if (! $obj->paye && $db->jdate($obj->datelimite) < ($now - $conf->facture->client->warning_delay)) print img_warning($langs->trans("Late")); + if ($obj->fk_statut == 1 && ! $obj->paye && $db->jdate($obj->datelimite) < ($now - $conf->facture->client->warning_delay)) print img_warning($langs->trans("Late")); print ''; print ''; $filename=dol_sanitizeFileName($obj->facnumber);