From b35994bf93211ddeb190dd3c250e96feff585660 Mon Sep 17 00:00:00 2001 From: splohmer <113967431+splohmer@users.noreply.github.com> Date: Tue, 11 Nov 2025 17:53:40 +0100 Subject: [PATCH] FIX late customer orders are not shown on start page (#36200) due to an mismatch of the used variable in hasDelay (status) and the setted variable (statut) the late orders where never shown in the start page as the count was always wrongly zero. --- htdocs/commande/class/commande.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php index 721f3d14a74..5384ef377d5 100644 --- a/htdocs/commande/class/commande.class.php +++ b/htdocs/commande/class/commande.class.php @@ -3698,8 +3698,7 @@ class Commande extends CommonOrder $response->nbtodo++; $response->total += $obj->total_ht; - $generic_commande->statut = $obj->fk_statut; - $generic_commande->date_commande = $this->db->jdate($obj->date_commande); + $generic_commande->status = $obj->fk_statut; $generic_commande->date = $this->db->jdate($obj->date_commande); $generic_commande->delivery_date = $this->db->jdate($obj->delivery_date);