feat(waiter): a table's earlier orders (platform-v2 step 4.7)

- GET /api/tables/{id}/history: the table's closed / cancelled orders, newest first,
  for the waiters of its zone (ordering.orders.open), never older than the history
  module's history_days (free tier 31, D-6), module.disabled when history is off;
  each order with times, total (cancelled items left out), people and items.
- Waiter: a History tab on the table (and "This table's earlier orders" on a free
  table); orders expand to their items; the last answer is kept on the phone and
  shown offline, marked as saved; the plan's day limit is shown.
- Tests: test_table_history.py (4), waiter e2e +2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 04:45:31 +02:00
co-authored by Claude Opus 5.5
parent f8d91e7fae
commit 9e1912bce0
7 changed files with 306 additions and 2 deletions
+10
View File
@@ -769,5 +769,15 @@
"tables_other": "Τραπέζια: {{tables}}",
"more_one": "+{{count}} ακόμα μήνυμα",
"more_other": "+{{count}} ακόμα μηνύματα"
},
"history": {
"tab": "Ιστορικό",
"earlier": "Προηγούμενες παραγγελίες τραπεζιού",
"failed": "Σφάλμα φόρτωσης ιστορικού",
"cached": "Αποθηκευμένο στο κινητό στις {{time}} (χωρίς σύνδεση)",
"none": "Δεν υπάρχουν προηγούμενες παραγγελίες",
"cancelled": "ΑΚΥΡΩΜΕΝΗ",
"limit_one": "Το πακέτο σας δείχνει την τελευταία {{count}} ημέρα",
"limit_other": "Το πακέτο σας δείχνει τις τελευταίες {{count}} ημέρες"
}
}