diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 4890f1c0a2e..3712a6eea1b 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -4054,7 +4054,7 @@ class Commande extends CommonOrder $now = dol_now(); - return max($this->date_commande, $this->date_livraison) < ($now - $conf->commande->client->warning_delay); + return max($this->date, $this->date_livraison) < ($now - $conf->commande->client->warning_delay); } /**