chg: show "en attente de règlement" for check/wire orders in customer order list

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".
This commit is contained in:
Valentin Lab
2026-02-09 06:53:55 +01:00
parent 9c1f3dfed2
commit 41d3294f74

View File

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