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:
@@ -119,7 +119,7 @@ def test_a_tablet_at_a_table_calls_a_waiter(client, owner_h, tablet, menu, table
|
||||
assert client.get("/api/menu-tablet/menu", headers=tablet["h"]).json()["table"] is None
|
||||
assert err(client.post("/api/menu-tablet/call", headers=tablet["h"])) == "menu_tablet.no_table"
|
||||
client.patch(f"/api/devices/{tablet['id']}", headers=owner_h, json={"config": {"table": table.id}})
|
||||
assert client.get("/api/menu-tablet/menu", headers=tablet["h"]).json()["table"] == {"id": table.id, "name": "5", "can_call": True}
|
||||
assert client.get("/api/menu-tablet/menu", headers=tablet["h"]).json()["table"] == {"id": table.id, "name": "5", "can_call": True, "can_order": False, "can_see_bill": True}
|
||||
r = client.post("/api/menu-tablet/call", headers=tablet["h"])
|
||||
assert r.status_code == 200 and r.json()["waiters"] >= 1 and r.json()["again_in"] == 60
|
||||
from models.message import StaffMessage
|
||||
|
||||
Reference in New Issue
Block a user