update message 2
This commit is contained in:
parent
60d2f356c7
commit
0d0f7b2fd8
@ -83,7 +83,7 @@ try {
|
|||||||
LEFT JOIN payment_types pt ON o.payment_type_id = pt.id
|
LEFT JOIN payment_types pt ON o.payment_type_id = pt.id
|
||||||
LEFT JOIN users u ON o.user_id = u.id
|
LEFT JOIN users u ON o.user_id = u.id
|
||||||
LEFT JOIN outlets outl ON o.outlet_id = outl.id
|
LEFT JOIN outlets outl ON o.outlet_id = outl.id
|
||||||
WHERE DATE(o.created_at) = ? AND o.status != 'cancelled'"
|
WHERE DATE(o.created_at) = ? AND o.status IN ('pending', 'preparing', 'ready', 'completed')"
|
||||||
);
|
);
|
||||||
$stmt->execute([$currentDate]);
|
$stmt->execute([$currentDate]);
|
||||||
$orders = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
$orders = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user