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.
This commit is contained in:
splohmer
2025-11-11 17:53:40 +01:00
committed by GitHub
parent 079a55153f
commit b35994bf93

View File

@@ -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);