feat: ordering from the menu tablet at a table (platform-v2 step 6.6, D-30)
- tablet_orders (0034) + services/tablet_orders.py: venue rules (menu_tablet.ordering) with
per-tablet overrides: kitchen or waiter confirms first, no open order open/refuse, limits
(items per order, of one dish, time between orders)
- /api/menu-tablet: quote, order, order/{id}, bill (see + ask), requests accept/decline, ordering
- terminal: Add to the order (POS ProductDialog), cart, note, send, live status, the bill
- waiter: TabletRequests on the table page, tablet_order message theme with Open the table
- manager: Settings -> Menu tablets
- tests: test_tablet_orders.py, menu-tablet unit, menu_tablet.mjs e2e (the done-when)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -190,7 +190,16 @@
|
||||
},
|
||||
"menu_tablet": {
|
||||
"no_table": "This tablet isn't at a table, so it can't call a waiter.",
|
||||
"call_too_soon": "A waiter was just called. Try again in {{seconds}} seconds."
|
||||
"call_too_soon": "A waiter was just called. Try again in {{seconds}} seconds.",
|
||||
"no_ordering": "Ordering isn't on for this tablet.",
|
||||
"too_many": "At most {{most}} items in one order.",
|
||||
"too_many_of": "At most {{most}} of \"{{name}}\" in one order.",
|
||||
"too_soon": "An order was just sent. Try again in {{seconds}} seconds.",
|
||||
"table_closed": "Please ask a waiter to open your table first.",
|
||||
"day_closed": "The venue isn't taking orders right now. Please ask a waiter.",
|
||||
"no_staff": "There is no staff account to place the order with.",
|
||||
"order_not_found": "This order was not found.",
|
||||
"order_answered": "This order was already answered."
|
||||
},
|
||||
"settings": {
|
||||
"invalid_json": "The settings must be valid JSON.",
|
||||
|
||||
@@ -322,7 +322,8 @@
|
||||
"print-fonts": "Printing",
|
||||
"fiscal": "Fiscal device",
|
||||
"development": "Developer",
|
||||
"customer-display": "Customer display"
|
||||
"customer-display": "Customer display",
|
||||
"menu-tablets": "Menu tablets"
|
||||
},
|
||||
"mode": {
|
||||
"password": "Password",
|
||||
@@ -1816,5 +1817,32 @@
|
||||
"trNameHint": "Empty: the name as typed.",
|
||||
"trDescription": "Description"
|
||||
}
|
||||
},
|
||||
"menuTabletSettings": {
|
||||
"title": "Ordering from the menu tablets",
|
||||
"intro": "The rules for guests ordering from a tablet at their table. Each tablet can change any of them in Devices; a tablet takes orders only with “Guests can order” on.",
|
||||
"confirm": "Who confirms an order",
|
||||
"confirmTip": "Straight to the kitchen: the order prints in the kitchen at once and the table’s waiters are told. A waiter confirms first: the order waits on the table’s page in the waiters’ phones until one accepts it (then it goes to the kitchen) or declines it with a reason the guests see.",
|
||||
"confirms": {
|
||||
"kitchen": "Straight to the kitchen",
|
||||
"waiter": "A waiter confirms first"
|
||||
},
|
||||
"noOrder": "A table with no open order",
|
||||
"noOrderTip": "Open one: the tablet’s first order opens the table. Wait for a waiter: the guests can order only after a waiter has opened the table.",
|
||||
"noOrders": {
|
||||
"open": "The tablet opens one",
|
||||
"refuse": "Wait for a waiter to open it"
|
||||
},
|
||||
"maxItems": "Most items in one order",
|
||||
"maxItemsTip": "All the items of one order together. Bigger orders are refused with a message on the tablet.",
|
||||
"maxOfOne": "Most of one dish in one order",
|
||||
"maxOfOneTip": "How many of the same dish one order can have.",
|
||||
"minTime": "Time between two orders",
|
||||
"minTimeTip": "The shortest time between two orders from the same tablet, so a playing child can’t flood the kitchen.",
|
||||
"noWait": "No wait",
|
||||
"seconds_one": "{{count}} second",
|
||||
"seconds_other": "{{count}} seconds",
|
||||
"minutes_one": "{{count}} minute",
|
||||
"minutes_other": "{{count}} minutes"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -283,7 +283,8 @@
|
||||
"look": "Look",
|
||||
"menu": "Menu",
|
||||
"use": "Use",
|
||||
"table": "At a table"
|
||||
"table": "At a table",
|
||||
"order": "Ordering at the table"
|
||||
},
|
||||
"config": {
|
||||
"view": {
|
||||
@@ -370,6 +371,66 @@
|
||||
"call_waiter": {
|
||||
"label": "Guests can call a waiter",
|
||||
"hint": "A button that sends a message to the table's waiters (once a minute at most)."
|
||||
},
|
||||
"ordering": {
|
||||
"label": "Guests can order",
|
||||
"hint": "At a table only: a cart, the dishes' choices and \"Send\". The venue's rules are in Settings → Menu tablets."
|
||||
},
|
||||
"bill": {
|
||||
"label": "Guests see the bill",
|
||||
"hint": "What the table ordered so far and \"Ask for the bill\" (a message to the table's waiters)."
|
||||
},
|
||||
"order_confirm": {
|
||||
"label": "Orders go",
|
||||
"choices": {
|
||||
"venue": "As the venue (Settings)",
|
||||
"kitchen": "Straight to the kitchen",
|
||||
"waiter": "To a waiter to confirm first"
|
||||
}
|
||||
},
|
||||
"order_no_order": {
|
||||
"label": "When the table has no open order",
|
||||
"choices": {
|
||||
"venue": "As the venue (Settings)",
|
||||
"open": "The tablet opens it",
|
||||
"refuse": "Ask a waiter to open it first"
|
||||
}
|
||||
},
|
||||
"order_max_items": {
|
||||
"label": "Most items in one order",
|
||||
"choices": {
|
||||
"-1": "As the venue (Settings)",
|
||||
"5": "5",
|
||||
"10": "10",
|
||||
"15": "15",
|
||||
"20": "20",
|
||||
"30": "30",
|
||||
"50": "50"
|
||||
}
|
||||
},
|
||||
"order_max_of_one": {
|
||||
"label": "Most of one dish in one order",
|
||||
"choices": {
|
||||
"-1": "As the venue (Settings)",
|
||||
"1": "1",
|
||||
"2": "2",
|
||||
"3": "3",
|
||||
"5": "5",
|
||||
"10": "10",
|
||||
"20": "20"
|
||||
}
|
||||
},
|
||||
"order_min_seconds": {
|
||||
"label": "Least time between two orders",
|
||||
"choices": {
|
||||
"-1": "As the venue (Settings)",
|
||||
"0": "No wait",
|
||||
"30": "30 s",
|
||||
"60": "1 min",
|
||||
"120": "2 min",
|
||||
"300": "5 min",
|
||||
"600": "10 min"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -507,6 +507,39 @@
|
||||
"call": "Call a waiter",
|
||||
"called": "A waiter is on the way to table {{table}}.",
|
||||
"callAgainIn": "Again in {{seconds}} s",
|
||||
"callFailed": "The call didn't go through: please ask at the counter."
|
||||
"callFailed": "The call didn't go through: please ask at the counter.",
|
||||
"order": {
|
||||
"add": "Add to the order",
|
||||
"yours_one": "Your order · {{count}} item",
|
||||
"yours_other": "Your order · {{count}} items",
|
||||
"title": "Your order",
|
||||
"more": "Order more",
|
||||
"send": "Send to the kitchen",
|
||||
"less": "One less",
|
||||
"moreOf": "One more",
|
||||
"remove": "Remove",
|
||||
"total": "Total",
|
||||
"note": "A note for the kitchen (optional)",
|
||||
"notePlaceholder": "e.g. no onions, one without salt",
|
||||
"confirmTitle": "Send to the kitchen?",
|
||||
"confirmBody": "{{count}} items, {{total}}. You pay the waiter at the end.",
|
||||
"notYet": "Not yet",
|
||||
"yesSend": "Yes, send it",
|
||||
"status": {
|
||||
"sent": "Your order is in the kitchen. Enjoy!",
|
||||
"waiting": "Your order was sent: a waiter will confirm it in a moment.",
|
||||
"declined": "A waiter couldn't take this order."
|
||||
},
|
||||
"reason": "Reason: {{reason}}"
|
||||
},
|
||||
"bill": {
|
||||
"title": "The bill",
|
||||
"ask": "Ask for the bill",
|
||||
"empty": "Nothing ordered yet.",
|
||||
"due": "To pay",
|
||||
"paid": "Already paid: {{amount}}",
|
||||
"asked": "A waiter is bringing the bill.",
|
||||
"note": "You pay the waiter."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -842,5 +842,16 @@
|
||||
"party": "Private event",
|
||||
"other": "Other reason"
|
||||
}
|
||||
},
|
||||
"tabletOrder": {
|
||||
"title": "Ordered from the tablet",
|
||||
"body": "The guests ordered this from the table's tablet. It goes to the kitchen when you accept it.",
|
||||
"accept": "Accept",
|
||||
"decline": "Decline",
|
||||
"reason": "Reason (the guests see it)",
|
||||
"reasonDefault": "The kitchen can't make it right now.",
|
||||
"accepted": "Sent to the kitchen",
|
||||
"declined": "Declined",
|
||||
"note": "Note: {{note}}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user