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": "Αυτό το tablet δεν είναι σε τραπέζι, οπότε δεν καλεί σερβιτόρο.",
|
||||
"call_too_soon": "Μόλις κλήθηκε σερβιτόρος. Δοκιμάστε ξανά σε {{seconds}} δευτερόλεπτα."
|
||||
"call_too_soon": "Μόλις κλήθηκε σερβιτόρος. Δοκιμάστε ξανά σε {{seconds}} δευτερόλεπτα.",
|
||||
"no_ordering": "Η παραγγελία δεν είναι ενεργή σε αυτό το tablet.",
|
||||
"too_many": "Έως {{most}} τεμάχια σε μία παραγγελία.",
|
||||
"too_many_of": "Έως {{most}} από «{{name}}» σε μία παραγγελία.",
|
||||
"too_soon": "Μόλις στάλθηκε παραγγελία. Δοκιμάστε ξανά σε {{seconds}} δευτερόλεπτα.",
|
||||
"table_closed": "Ζητήστε πρώτα από έναν σερβιτόρο να ανοίξει το τραπέζι σας.",
|
||||
"day_closed": "Το κατάστημα δεν δέχεται παραγγελίες αυτή τη στιγμή. Ρωτήστε έναν σερβιτόρο.",
|
||||
"no_staff": "Δεν υπάρχει λογαριασμός προσωπικού για την παραγγελία.",
|
||||
"order_not_found": "Η παραγγελία δεν βρέθηκε.",
|
||||
"order_answered": "Η παραγγελία έχει ήδη απαντηθεί."
|
||||
},
|
||||
"settings": {
|
||||
"invalid_json": "Οι ρυθμίσεις πρέπει να είναι έγκυρο JSON.",
|
||||
|
||||
@@ -322,7 +322,8 @@
|
||||
"print-fonts": "Εκτύπωση",
|
||||
"fiscal": "Ταμειακή",
|
||||
"development": "Developer",
|
||||
"customer-display": "Οθόνη πελάτη"
|
||||
"customer-display": "Οθόνη πελάτη",
|
||||
"menu-tablets": "Tablet μενού"
|
||||
},
|
||||
"mode": {
|
||||
"password": "Κωδικός",
|
||||
@@ -1816,5 +1817,32 @@
|
||||
"trNameHint": "Κενό: το όνομα όπως γράφτηκε.",
|
||||
"trDescription": "Περιγραφή"
|
||||
}
|
||||
},
|
||||
"menuTabletSettings": {
|
||||
"title": "Παραγγελίες από τα tablet μενού",
|
||||
"intro": "Οι κανόνες για τις παραγγελίες των πελατών από το tablet του τραπεζιού τους. Κάθε tablet μπορεί να αλλάξει οποιονδήποτε από τις Συσκευές· ένα tablet δέχεται παραγγελίες μόνο με ενεργό το «Οι πελάτες παραγγέλνουν».",
|
||||
"confirm": "Ποιος επιβεβαιώνει μια παραγγελία",
|
||||
"confirmTip": "Κατευθείαν στην κουζίνα: η παραγγελία τυπώνεται αμέσως στην κουζίνα και ενημερώνονται οι σερβιτόροι του τραπεζιού. Επιβεβαιώνει πρώτα σερβιτόρος: η παραγγελία περιμένει στη σελίδα του τραπεζιού στα κινητά των σερβιτόρων μέχρι κάποιος να την αποδεχτεί (τότε πάει στην κουζίνα) ή να την απορρίψει με έναν λόγο που βλέπουν οι πελάτες.",
|
||||
"confirms": {
|
||||
"kitchen": "Κατευθείαν στην κουζίνα",
|
||||
"waiter": "Επιβεβαιώνει πρώτα σερβιτόρος"
|
||||
},
|
||||
"noOrder": "Τραπέζι χωρίς ανοιχτή παραγγελία",
|
||||
"noOrderTip": "Ανοίγει μία: η πρώτη παραγγελία του tablet ανοίγει το τραπέζι. Περιμένει σερβιτόρο: οι πελάτες παραγγέλνουν μόνο αφού ένας σερβιτόρος ανοίξει το τραπέζι.",
|
||||
"noOrders": {
|
||||
"open": "Το tablet ανοίγει μία",
|
||||
"refuse": "Περιμένει σερβιτόρο να το ανοίξει"
|
||||
},
|
||||
"maxItems": "Μέγιστα τεμάχια σε μία παραγγελία",
|
||||
"maxItemsTip": "Όλα τα τεμάχια μιας παραγγελίας μαζί. Μεγαλύτερες παραγγελίες απορρίπτονται με μήνυμα στο tablet.",
|
||||
"maxOfOne": "Μέγιστα από ένα πιάτο σε μία παραγγελία",
|
||||
"maxOfOneTip": "Πόσα από το ίδιο πιάτο μπορεί να έχει μία παραγγελία.",
|
||||
"minTime": "Χρόνος ανάμεσα σε δύο παραγγελίες",
|
||||
"minTimeTip": "Ο ελάχιστος χρόνος ανάμεσα σε δύο παραγγελίες από το ίδιο tablet, ώστε ένα παιδί που παίζει να μη γεμίσει την κουζίνα.",
|
||||
"noWait": "Χωρίς αναμονή",
|
||||
"seconds_one": "{{count}} δευτερόλεπτο",
|
||||
"seconds_other": "{{count}} δευτερόλεπτα",
|
||||
"minutes_one": "{{count}} λεπτό",
|
||||
"minutes_other": "{{count}} λεπτά"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -283,7 +283,8 @@
|
||||
"look": "Εμφάνιση",
|
||||
"menu": "Μενού",
|
||||
"use": "Χρήση",
|
||||
"table": "Σε τραπέζι"
|
||||
"table": "Σε τραπέζι",
|
||||
"order": "Παραγγελία από το τραπέζι"
|
||||
},
|
||||
"config": {
|
||||
"view": {
|
||||
@@ -370,6 +371,66 @@
|
||||
"call_waiter": {
|
||||
"label": "Οι πελάτες καλούν σερβιτόρο",
|
||||
"hint": "Κουμπί που στέλνει μήνυμα στους σερβιτόρους του τραπεζιού (το πολύ μία φορά το λεπτό)."
|
||||
},
|
||||
"ordering": {
|
||||
"label": "Οι πελάτες παραγγέλνουν",
|
||||
"hint": "Μόνο σε τραπέζι: καλάθι, επιλογές πιάτων και «Αποστολή». Οι κανόνες του χώρου είναι στις Ρυθμίσεις → Tablet μενού."
|
||||
},
|
||||
"bill": {
|
||||
"label": "Οι πελάτες βλέπουν τον λογαριασμό",
|
||||
"hint": "Τι έχει παραγγείλει το τραπέζι ως τώρα και «Ζητήστε τον λογαριασμό» (μήνυμα στους σερβιτόρους του τραπεζιού)."
|
||||
},
|
||||
"order_confirm": {
|
||||
"label": "Οι παραγγελίες πάνε",
|
||||
"choices": {
|
||||
"venue": "Όπως ο χώρος (Ρυθμίσεις)",
|
||||
"kitchen": "Κατευθείαν στην κουζίνα",
|
||||
"waiter": "Σε σερβιτόρο για επιβεβαίωση"
|
||||
}
|
||||
},
|
||||
"order_no_order": {
|
||||
"label": "Όταν το τραπέζι δεν έχει ανοιχτή παραγγελία",
|
||||
"choices": {
|
||||
"venue": "Όπως ο χώρος (Ρυθμίσεις)",
|
||||
"open": "Την ανοίγει το tablet",
|
||||
"refuse": "Να την ανοίξει πρώτα σερβιτόρος"
|
||||
}
|
||||
},
|
||||
"order_max_items": {
|
||||
"label": "Μέγιστα τεμάχια ανά παραγγελία",
|
||||
"choices": {
|
||||
"-1": "Όπως ο χώρος (Ρυθμίσεις)",
|
||||
"5": "5",
|
||||
"10": "10",
|
||||
"15": "15",
|
||||
"20": "20",
|
||||
"30": "30",
|
||||
"50": "50"
|
||||
}
|
||||
},
|
||||
"order_max_of_one": {
|
||||
"label": "Μέγιστα από ένα πιάτο ανά παραγγελία",
|
||||
"choices": {
|
||||
"-1": "Όπως ο χώρος (Ρυθμίσεις)",
|
||||
"1": "1",
|
||||
"2": "2",
|
||||
"3": "3",
|
||||
"5": "5",
|
||||
"10": "10",
|
||||
"20": "20"
|
||||
}
|
||||
},
|
||||
"order_min_seconds": {
|
||||
"label": "Ελάχιστος χρόνος ανάμεσα σε παραγγελίες",
|
||||
"choices": {
|
||||
"-1": "Όπως ο χώρος (Ρυθμίσεις)",
|
||||
"0": "Χωρίς αναμονή",
|
||||
"30": "30 δλ",
|
||||
"60": "1 λεπτό",
|
||||
"120": "2 λεπτά",
|
||||
"300": "5 λεπτά",
|
||||
"600": "10 λεπτά"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -507,6 +507,39 @@
|
||||
"call": "Κλήση σερβιτόρου",
|
||||
"called": "Ένας σερβιτόρος έρχεται στο τραπέζι {{table}}.",
|
||||
"callAgainIn": "Ξανά σε {{seconds}} δ",
|
||||
"callFailed": "Η κλήση δεν έφτασε: παρακαλούμε ρωτήστε στο ταμείο."
|
||||
"callFailed": "Η κλήση δεν έφτασε: παρακαλούμε ρωτήστε στο ταμείο.",
|
||||
"order": {
|
||||
"add": "Στην παραγγελία",
|
||||
"yours_one": "Η παραγγελία σας · {{count}} τεμάχιο",
|
||||
"yours_other": "Η παραγγελία σας · {{count}} τεμάχια",
|
||||
"title": "Η παραγγελία σας",
|
||||
"more": "Κι άλλα",
|
||||
"send": "Αποστολή στην κουζίνα",
|
||||
"less": "Ένα λιγότερο",
|
||||
"moreOf": "Ένα ακόμα",
|
||||
"remove": "Αφαίρεση",
|
||||
"total": "Σύνολο",
|
||||
"note": "Σημείωση για την κουζίνα (προαιρετικό)",
|
||||
"notePlaceholder": "π.χ. χωρίς κρεμμύδι, ένα χωρίς αλάτι",
|
||||
"confirmTitle": "Αποστολή στην κουζίνα;",
|
||||
"confirmBody": "{{count}} τεμάχια, {{total}}. Πληρώνετε στον σερβιτόρο στο τέλος.",
|
||||
"notYet": "Όχι ακόμα",
|
||||
"yesSend": "Ναι, αποστολή",
|
||||
"status": {
|
||||
"sent": "Η παραγγελία σας είναι στην κουζίνα. Καλή όρεξη!",
|
||||
"waiting": "Η παραγγελία στάλθηκε: ένας σερβιτόρος θα την επιβεβαιώσει σε λίγο.",
|
||||
"declined": "Ο σερβιτόρος δεν μπόρεσε να δεχτεί την παραγγελία."
|
||||
},
|
||||
"reason": "Λόγος: {{reason}}"
|
||||
},
|
||||
"bill": {
|
||||
"title": "Ο λογαριασμός",
|
||||
"ask": "Ζητήστε τον λογαριασμό",
|
||||
"empty": "Δεν έχει παραγγελθεί τίποτα ακόμα.",
|
||||
"due": "Πληρωτέο",
|
||||
"paid": "Έχουν πληρωθεί: {{amount}}",
|
||||
"asked": "Ένας σερβιτόρος φέρνει τον λογαριασμό.",
|
||||
"note": "Πληρώνετε στον σερβιτόρο."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -842,5 +842,16 @@
|
||||
"party": "Ιδιωτική εκδήλωση",
|
||||
"other": "Άλλος λόγος"
|
||||
}
|
||||
},
|
||||
"tabletOrder": {
|
||||
"title": "Παραγγελία από το tablet",
|
||||
"body": "Οι πελάτες το παρήγγειλαν από το tablet του τραπεζιού. Πηγαίνει στην κουζίνα όταν το αποδεχτείτε.",
|
||||
"accept": "Αποδοχή",
|
||||
"decline": "Απόρριψη",
|
||||
"reason": "Λόγος (τον βλέπουν οι πελάτες)",
|
||||
"reasonDefault": "Η κουζίνα δεν μπορεί να το φτιάξει αυτή τη στιγμή.",
|
||||
"accepted": "Στάλθηκε στην κουζίνα",
|
||||
"declined": "Απορρίφθηκε",
|
||||
"note": "Σημείωση: {{note}}"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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