diff --git a/htdocs/commande/liste.php b/htdocs/commande/liste.php
index 2e96a5451d4..64ac19fe1ad 100644
--- a/htdocs/commande/liste.php
+++ b/htdocs/commande/liste.php
@@ -334,7 +334,7 @@ if ($resql)
print '';
print '
';
- 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))
+ if (($objp->fk_statut > 0) && ($objp->fk_statut < 3) && max($db->jdate($objp->date_commande),$db->jdate($objp->date_livraison)) < ($now - $conf->commande->client->warning_delay))
print img_picto($langs->trans("Late"),"warning");
if(!empty($objp->note_private))
{
|