feat(connect): table bookings from the online ordering app; food fired to the kitchen before arrival
Plan phase 3S, step S.6. - Pull: "reservation" / "preorder" orders become Reservations waiting for an answer (status "requested"; services/online_reservations.py), with the food ordered ahead kept on the booking (items_json at the cloud's prices, the site's price check) — no order yet. Migration 0020 (reservations: online_order_cloud_id, online_ref, items_json, total, online_price_diff, fire_at, order_id, response_note). - Confirm → the food's fire time = booking time − fire minutes (setting); the fire worker (connect_orders, every 20 s) turns the food into an order at that time (needs an open business day; waits otherwise): kitchen tickets, KDS (reference and time). Early arrival fires at once. Seating moves the order to the table (refused if the table has an open order). Decline / cancel / no-show with a reason. Every step mirrored to the cloud. - Found: the KDS filter dropped every online order without an online status (SQL NULL in NOT(a AND b)) — made NULL-safe. - Counter: Online → Bookings (requests first, then upcoming), BookingPanel (confirm, decline with reasons, food and when it goes to the kitchen, seat at a free table, cancel, no-show); the Online badge and chime count booking requests. - Manager: Online ordering → Table bookings settings (on, food ahead, hours, slot, notice, days ahead, party size, fire minutes); the dashboard's reservations card confirms / declines online requests; the reservations router delegates online bookings' status steps. - Tests: tests/test_online_bookings.py (8), unit tests (terminal, manager), e2e: order app (book with food → the venue confirms), terminal (request → confirm → the two dishes reach the KDS at the fire time, not before → seated), manager (booking settings). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -104,5 +104,11 @@
|
||||
"area_in_use": "Αυτή η περιοχή χρησιμοποιείται από κανόνες χρέωσης: {{rules}}. Αλλάξτε πρώτα αυτούς τους κανόνες.",
|
||||
"order_invalid": "Η νέα σειρά πρέπει να περιέχει κάθε κανόνα μία φορά.",
|
||||
"vat_group_unknown": "Η ομάδα ΦΠΑ {{vat_group_id}} δεν είναι μία από τις ομάδες της φορολογικής μηχανής."
|
||||
},
|
||||
"reservation": {
|
||||
"not_found": "Η κράτηση {{reservation_id}} δεν βρέθηκε.",
|
||||
"status_changed": "Η κράτηση άλλαξε από άλλη οθόνη στο μεταξύ (τώρα είναι {{current}}).",
|
||||
"table_unknown": "Το τραπέζι {{table_id}} δεν βρέθηκε.",
|
||||
"table_busy": "Αυτό το τραπέζι έχει ήδη ανοιχτή παραγγελία. Διαλέξτε άλλο τραπέζι ή κλείστε πρώτα εκείνη την παραγγελία."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -554,5 +554,22 @@
|
||||
"vat": "Ομάδα ΦΠΑ",
|
||||
"vatNone": "Χωρίς ομάδα ΦΠΑ",
|
||||
"noGroups": "Ορίστε τις ομάδες ΦΠΑ της φορολογικής μηχανής στις Ρυθμίσεις → Φορολογικά για να διαλέξετε εδώ."
|
||||
},
|
||||
"booking": {
|
||||
"title": "Κρατήσεις τραπεζιών",
|
||||
"intro": "Οι πελάτες κλείνουν τραπέζι από την εφαρμογή online παραγγελιών· εσείς επιβεβαιώνετε ή απορρίπτετε κάθε αίτημα στο ταμείο (Online → Κρατήσεις) ή στον πίνακα ελέγχου.",
|
||||
"enabled": "Online κρατήσεις τραπεζιών",
|
||||
"enabledHint": "Οι πελάτες επιλέγουν ημέρα, ώρα και άτομα.",
|
||||
"withFood": "Παραγγελία φαγητού μαζί με την κράτηση",
|
||||
"withFoodHint": "Τα πιάτα της κράτησης πηγαίνουν στην κουζίνα λίγο πριν φτάσουν οι πελάτες, με τις τιμές προπαραγγελίας (Σημεία πώλησης: Online προπαραγγελία).",
|
||||
"anyTime": "Κρατήσεις οποιαδήποτε ώρα",
|
||||
"anyTimeHint": "Ανενεργό: μόνο μέσα στις παρακάτω ώρες.",
|
||||
"slotHint": "Οι ώρες που προσφέρονται.",
|
||||
"notice": "Προειδοποίηση (λεπτά)",
|
||||
"noticeHint": "Η νωρίτερη κράτηση από τώρα.",
|
||||
"ahead": "Ημέρες μπροστά",
|
||||
"party": "Μέγιστα άτομα ανά κράτηση",
|
||||
"fire": "Η κουζίνα παίρνει το φαγητό (λεπτά πριν την άφιξη)",
|
||||
"fireHint": "0 = την ώρα της κράτησης."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -300,7 +300,8 @@
|
||||
"lists": {
|
||||
"incoming": "Νέες",
|
||||
"in_progress": "Σε εξέλιξη",
|
||||
"finished": "Ολοκληρωμένες"
|
||||
"finished": "Ολοκληρωμένες",
|
||||
"bookings": "Κρατήσεις"
|
||||
},
|
||||
"empty": {
|
||||
"incoming": "Δεν υπάρχουν νέες online παραγγελίες",
|
||||
@@ -427,6 +428,42 @@
|
||||
"card": "Η επιστροφή {{amount}} (κάρτα) καταγράφηκε. Το σύστημα δεν στέλνει ακόμη πιστωτικά σε αυτή τη φορολογική μηχανή: εκδώστε το στη μηχανή τώρα."
|
||||
},
|
||||
"fiscalManualOk": "Έγινε"
|
||||
},
|
||||
"bookings": {
|
||||
"arrived_one": "Νέο αίτημα κράτησης",
|
||||
"arrived_other": "{{count}} νέα αιτήματα κράτησης",
|
||||
"empty": "Καμία κράτηση",
|
||||
"emptyBody": "Οι κρατήσεις τραπεζιών από την εφαρμογή online παραγγελιών εμφανίζονται εδώ, με ήχο.",
|
||||
"pick": "Επιλέξτε μια κράτηση",
|
||||
"withFood": "Φαγητό με προπαραγγελία",
|
||||
"people_one": "{{count}} άτομο",
|
||||
"people_other": "{{count}} άτομα",
|
||||
"today": "Σήμερα {{time}}",
|
||||
"status": {
|
||||
"requested": "Αναμένει απάντηση",
|
||||
"pending": "Επιβεβαιωμένη",
|
||||
"arrived": "Κάθισαν",
|
||||
"declined": "Απορρίφθηκε",
|
||||
"cancelled": "Ακυρώθηκε",
|
||||
"no_show": "Δεν ήρθαν"
|
||||
},
|
||||
"foodSent": "Το φαγητό στάλθηκε στην κουζίνα",
|
||||
"foodAt": "Το φαγητό πηγαίνει στην κουζίνα: {{time}}",
|
||||
"foodOnConfirm": "Το φαγητό πηγαίνει στην κουζίνα πριν έρθουν, μόλις επιβεβαιωθεί",
|
||||
"confirm": "Επιβεβαίωση κράτησης",
|
||||
"decline": "Απόρριψη",
|
||||
"declineTitle": "Απόρριψη της κράτησης;",
|
||||
"reasons": {
|
||||
"full": "Είμαστε γεμάτοι εκείνη την ώρα",
|
||||
"closed": "Είμαστε κλειστά τότε",
|
||||
"party": "Δεν χωράει παρέα αυτού του μεγέθους",
|
||||
"other": "Άλλος λόγος…"
|
||||
},
|
||||
"table": "Τραπέζι",
|
||||
"noTable": "Χωρίς τραπέζι ακόμα",
|
||||
"arrive": "Ήρθαν: καθίστε τους",
|
||||
"cancel": "Ακύρωση",
|
||||
"noShow": "Δεν ήρθαν"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,5 +104,11 @@
|
||||
"area_in_use": "This area is used by fee rules: {{rules}}. Change those rules first.",
|
||||
"order_invalid": "The new order must list every rule once.",
|
||||
"vat_group_unknown": "VAT group {{vat_group_id}} isn't one of the fiscal machine's groups."
|
||||
},
|
||||
"reservation": {
|
||||
"not_found": "Booking {{reservation_id}} not found.",
|
||||
"status_changed": "This booking was changed on another screen in the meantime (it is now {{current}}).",
|
||||
"table_unknown": "Table {{table_id}} not found.",
|
||||
"table_busy": "That table already has an open order. Pick another table, or close that order first."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -554,5 +554,22 @@
|
||||
"vat": "VAT group",
|
||||
"vatNone": "No VAT group",
|
||||
"noGroups": "Set up the fiscal machine's VAT groups in Settings → Fiscal to pick one here."
|
||||
},
|
||||
"booking": {
|
||||
"title": "Table bookings",
|
||||
"intro": "Customers book a table in the online ordering app; you confirm or decline each request at the counter (Online → Bookings) or on the dashboard.",
|
||||
"enabled": "Take table bookings online",
|
||||
"enabledHint": "Customers pick the day, time and how many people.",
|
||||
"withFood": "Let them order food ahead",
|
||||
"withFoodHint": "Dishes picked with the booking go to the kitchen shortly before the guests arrive, at the pre-order prices (Sales points: Online pre-order).",
|
||||
"anyTime": "Bookings any time",
|
||||
"anyTimeHint": "Off: only inside the hours below.",
|
||||
"slotHint": "The times offered.",
|
||||
"notice": "Notice (minutes)",
|
||||
"noticeHint": "The earliest booking from now.",
|
||||
"ahead": "Days ahead",
|
||||
"party": "Most people per booking",
|
||||
"fire": "Kitchen gets the food (minutes before arrival)",
|
||||
"fireHint": "0 = at the booking time."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -300,7 +300,8 @@
|
||||
"lists": {
|
||||
"incoming": "New",
|
||||
"in_progress": "In progress",
|
||||
"finished": "Finished"
|
||||
"finished": "Finished",
|
||||
"bookings": "Bookings"
|
||||
},
|
||||
"empty": {
|
||||
"incoming": "No new online orders",
|
||||
@@ -427,6 +428,42 @@
|
||||
"card": "The refund of {{amount}} (card) is recorded. The system can't send credit notes to this fiscal machine yet: issue it on the machine now."
|
||||
},
|
||||
"fiscalManualOk": "Done"
|
||||
},
|
||||
"bookings": {
|
||||
"arrived_one": "New table booking request",
|
||||
"arrived_other": "{{count}} new table booking requests",
|
||||
"empty": "No bookings",
|
||||
"emptyBody": "Table bookings from the online ordering app show here, with a sound.",
|
||||
"pick": "Pick a booking to see it",
|
||||
"withFood": "Food ordered ahead",
|
||||
"people_one": "{{count}} person",
|
||||
"people_other": "{{count}} people",
|
||||
"today": "Today {{time}}",
|
||||
"status": {
|
||||
"requested": "Waiting for an answer",
|
||||
"pending": "Confirmed",
|
||||
"arrived": "Seated",
|
||||
"declined": "Declined",
|
||||
"cancelled": "Cancelled",
|
||||
"no_show": "No-show"
|
||||
},
|
||||
"foodSent": "The food has gone to the kitchen",
|
||||
"foodAt": "The food goes to the kitchen: {{time}}",
|
||||
"foodOnConfirm": "The food goes to the kitchen before they arrive, once confirmed",
|
||||
"confirm": "Confirm booking",
|
||||
"decline": "Decline",
|
||||
"declineTitle": "Decline this booking?",
|
||||
"reasons": {
|
||||
"full": "We're fully booked then",
|
||||
"closed": "We're closed then",
|
||||
"party": "We can't seat a party this size",
|
||||
"other": "Other reason…"
|
||||
},
|
||||
"table": "Table",
|
||||
"noTable": "No table yet",
|
||||
"arrive": "They're here: seat them",
|
||||
"cancel": "Cancel",
|
||||
"noShow": "No-show"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user