diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php index 41ec59c4ff5..aaf6b5312ae 100644 --- a/htdocs/commande/liste.php +++ b/htdocs/commande/liste.php @@ -325,8 +325,8 @@ if ($resql) print ''; print ''; - if (($objp->fk_statut > 0) && ($objp->fk_statut < 3) && max($db->jdate($objp->date_valid),$db->jdate($objp->date_livrais -on)) < ($now - $conf->commande->client->warning_delay)) print img_picto($langs->trans("Late"),"warning"); + if (($objp->fk_statut > 0) && ($objp->fk_statut < 3) && max($db->jdate($objp->date_valid),$db->jdate($objp->date_livraison)) < ($now - $conf->commande->client->warning_delay)) + print img_picto($langs->trans("Late"),"warning"); if(!empty($objp->note_private)) { print ' ';