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