Fix: Si facture abandonne, il ne faut pas mettre warning paiement retard

This commit is contained in:
Laurent Destailleur 2005-07-16 15:18:07 +00:00
parent 77806c11d5
commit b531d4e8ab

View File

@ -911,7 +911,7 @@ else
print '<tr><td>'.$langs->trans("Date").'</td>';
print "<td colspan=\"3\">".dolibarr_print_date($fac->date,"%A %d %B %Y")."</td>\n";
print '<td>'.$langs->trans("DateClosing").'</td><td>' . 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 "</td></tr>";
print '<tr>';