From 41d3294f74abb1dc387f64975b86beacd24471b1 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 9 Feb 2026 06:53:55 +0100 Subject: [PATCH] =?UTF-8?q?chg:=20show=20"en=20attente=20de=20r=C3=A8gleme?= =?UTF-8?q?nt"=20for=20check/wire=20orders=20in=20customer=20order=20list?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When an order has status 0 ("En attente") and payment type is check or wire transfer, the customer-facing order list now displays "En attente de règlement" instead of the generic "En attente". --- app/Datatables/Shop/CustomerOrdersDataTable.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/Datatables/Shop/CustomerOrdersDataTable.php b/app/Datatables/Shop/CustomerOrdersDataTable.php index 68cacd7a..82ac432b 100644 --- a/app/Datatables/Shop/CustomerOrdersDataTable.php +++ b/app/Datatables/Shop/CustomerOrdersDataTable.php @@ -47,6 +47,10 @@ class CustomerOrdersDataTable extends DataTable { $datatables ->editColumn('status', function (Order $order) { + if ($order->status == 0 && in_array($order->payment_type, [2, 3])) { + return 'En attente de règlement'; + } + return Orders::getStatus($order->status); }) ->editColumn('created_at', function (Order $order) {