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:
2026-11-18 14:42:37 +02:00
co-authored by Claude Opus 5.5
parent c43dc8b55b
commit c1af7770cf
34 changed files with 1491 additions and 28 deletions
+62 -1
View File
@@ -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"
}
}
}
},