|
|
@@ -20,6 +20,7 @@ class KitchenModel
|
|
|
SELECT
|
|
|
order_id,
|
|
|
table_id,
|
|
|
+ user_name,
|
|
|
order_created_at,
|
|
|
order_flag,
|
|
|
order_item_id,
|
|
|
@@ -27,7 +28,8 @@ class KitchenModel
|
|
|
product_name,
|
|
|
order_item_kitchen_note
|
|
|
FROM 'order'
|
|
|
- NATURAL JOIN order_item
|
|
|
+ NATURAL JOIN order_item
|
|
|
+ NATURAL JOIN user
|
|
|
NATURAL JOIN product
|
|
|
WHERE company_id = :company_id
|
|
|
AND order_flag IN ('a', 'p')
|
|
|
@@ -47,6 +49,7 @@ class KitchenModel
|
|
|
$orders[$orderId] = [
|
|
|
'order_id' => $row['order_id'],
|
|
|
'table_id' => $row['table_id'],
|
|
|
+ 'user_name' => $row['user_name'],
|
|
|
'order_created_at' => $row['order_created_at'],
|
|
|
'order_flag' => $row['order_flag'],
|
|
|
'items' => []
|