feat(terminal): counter POS screen with server-priced cart and shift gate (platform-v2 3.3a)
- Backend /api/pos (pos_counter): session (business day, the cashier's own shift, self-start, who can open the day), menu (sellable products with every kind of choice, no costs; price now from the pricing engine), quote (lines by id → the waiter's selected_options entries with DB prices → resolve_price as orders do; pos.line_invalid). - POS device settings: default order type, start category, receipt printer (new ref sources categories / printers, also in the manager's Devices dialogs). - Terminal apps/pos: shift gate (start shift with drawer cash), categories, search, product grid, price check, options dialog, cart priced by the backend. - Tests: backend test_pos (13), terminal pos.test.mjs, manager refOptions, terminal.mjs +10 POS checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -77,5 +77,8 @@
|
||||
"item_not_found": "Το είδος {{item_id}} δεν βρέθηκε σε αυτή την παραγγελία.",
|
||||
"item_claimed": "Ο/Η {{name}} ασχολείται ήδη με αυτό το είδος.",
|
||||
"claim_needs_staff": "Μόνο μέλος του προσωπικού μπορεί να αναλάβει ένα είδος."
|
||||
},
|
||||
"pos": {
|
||||
"line_invalid": "Η γραμμή {{line}} του καλαθιού δεν μπορεί να πουληθεί όπως επιλέχθηκε ({{reason}})."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -295,7 +295,7 @@
|
||||
},
|
||||
"pos_counter": {
|
||||
"name": "Ταμείο πάγκου",
|
||||
"description": "Τερματικό στον πάγκο για γρήγορες παραγγελίες (έρχεται σύντομα).",
|
||||
"description": "Τερματικό πάγκου για γρήγορες πωλήσεις, τραπέζια, έλεγχο τιμών και online παραγγελίες.",
|
||||
"limits": {
|
||||
"devices": "Τερματικά πάγκου"
|
||||
},
|
||||
@@ -303,6 +303,24 @@
|
||||
"access": "Χρήση του ταμείου πάγκου"
|
||||
},
|
||||
"config": {
|
||||
"default_order_type": {
|
||||
"label": "Οι νέες πωλήσεις ξεκινούν ως",
|
||||
"hint": "Πακέτο ή για εδώ στον πάγκο (χωρίς τραπέζι).",
|
||||
"choices": {
|
||||
"takeaway": "Πακέτο",
|
||||
"here": "Για εδώ (χωρίς τραπέζι)"
|
||||
}
|
||||
},
|
||||
"start_category_id": {
|
||||
"label": "Κατηγορία που εμφανίζεται πρώτη",
|
||||
"hint": "Τα προϊόντα με τα οποία ανοίγει η οθόνη.",
|
||||
"none": "Όλα τα προϊόντα"
|
||||
},
|
||||
"receipt_printer_id": {
|
||||
"label": "Εκτυπωτής αποδείξεων (συρτάρι)",
|
||||
"hint": "Το συρτάρι του ανοίγει στις πληρωμές με μετρητά.",
|
||||
"none": "Κανένας εκτυπωτής"
|
||||
},
|
||||
"auto_sign_out_minutes": {
|
||||
"label": "Αποσύνδεση μετά από",
|
||||
"hint": "Επιστροφή στην οθόνη σύνδεσης όταν κανείς δεν έχει χρησιμοποιήσει την οθόνη για τόσο χρόνο.",
|
||||
|
||||
@@ -161,5 +161,49 @@
|
||||
"taken_by_me": "Το ανέλαβες",
|
||||
"released": "Το άφησες"
|
||||
}
|
||||
},
|
||||
"pos": {
|
||||
"allProducts": "Όλα τα προϊόντα",
|
||||
"search": "Αναζήτηση προϊόντων",
|
||||
"clearSearch": "Καθαρισμός αναζήτησης",
|
||||
"noResults": "Τίποτα για «{{query}}»",
|
||||
"noProducts": "Δεν υπάρχουν προϊόντα εδώ",
|
||||
"orderType": "Τύπος παραγγελίας",
|
||||
"type": {
|
||||
"takeaway": "Πακέτο",
|
||||
"here": "Για εδώ"
|
||||
},
|
||||
"cartEmpty": "Το καλάθι είναι άδειο",
|
||||
"cartEmptyBody": "Πατήστε ένα προϊόν για να το προσθέσετε. Το κουμπί (i) δείχνει την τιμή του χωρίς να το προσθέσει.",
|
||||
"total": "Σύνολο",
|
||||
"clearCart": "Άδειασμα καλαθιού",
|
||||
"quoteFailed": "Δεν ήταν δυνατή η τιμολόγηση του καλαθιού. Ελέγξτε τις επιλογές και δοκιμάστε ξανά.",
|
||||
"checkPrice": "Τιμή και στοιχεία: {{name}}",
|
||||
"less": "Ένα λιγότερο",
|
||||
"more": "Ένα ακόμη",
|
||||
"each": "{{price}} το ένα",
|
||||
"dialog": {
|
||||
"close": "Κλείσιμο",
|
||||
"add": "Στο καλάθι",
|
||||
"pickOne": "επιλέξτε ένα",
|
||||
"quick": "Προσθήκες",
|
||||
"extras": "Έξτρα",
|
||||
"without": "Χωρίς",
|
||||
"note": "Σημείωση για την κουζίνα",
|
||||
"quantity": "Ποσότητα",
|
||||
"missing": "Μένει να επιλέξετε: {{list}}"
|
||||
},
|
||||
"gate": {
|
||||
"dayClosed": "Η ημέρα εργασίας δεν έχει ανοίξει",
|
||||
"dayOpeners": "Ζητήστε από κάποιον που μπορεί να την ανοίξει: {{names}}.",
|
||||
"dayOpenersNone": "Κανείς εδώ δεν μπορεί ακόμη να την ανοίξει· ρυθμίστε το στη διαχείριση.",
|
||||
"noShift": "Δεν έχετε ανοιχτή βάρδια",
|
||||
"askManager": "Ζητήστε από έναν διαχειριστή να ξεκινήσει τη βάρδιά σας και δοκιμάστε ξανά.",
|
||||
"startTitle": "Έναρξη βάρδιας",
|
||||
"startBody": "Τα μετρητά που εισπράττετε σε αυτόν τον πάγκο πάνε στη βάρδιά σας.",
|
||||
"startingCash": "Μετρητά στο συρτάρι τώρα",
|
||||
"badAmount": "Γράψτε ένα ποσό, π.χ. 50 ή 50,00",
|
||||
"start": "Έναρξη βάρδιας"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,5 +77,8 @@
|
||||
"item_not_found": "Item {{item_id}} not found on this order.",
|
||||
"item_claimed": "{{name}} is already on this item.",
|
||||
"claim_needs_staff": "Only a staff member can claim an item."
|
||||
},
|
||||
"pos": {
|
||||
"line_invalid": "Cart line {{line}} can't be sold as chosen ({{reason}})."
|
||||
}
|
||||
}
|
||||
|
||||
@@ -295,7 +295,7 @@
|
||||
},
|
||||
"pos_counter": {
|
||||
"name": "Counter POS",
|
||||
"description": "A counter terminal for quick orders (coming soon).",
|
||||
"description": "A counter terminal for quick sales, tables, price checks and online orders.",
|
||||
"limits": {
|
||||
"devices": "Counter terminals"
|
||||
},
|
||||
@@ -303,6 +303,24 @@
|
||||
"access": "Use the counter POS"
|
||||
},
|
||||
"config": {
|
||||
"default_order_type": {
|
||||
"label": "New sales start as",
|
||||
"hint": "Takeaway or eat in at the counter (no table).",
|
||||
"choices": {
|
||||
"takeaway": "Takeaway",
|
||||
"here": "Eat in (no table)"
|
||||
}
|
||||
},
|
||||
"start_category_id": {
|
||||
"label": "Category shown first",
|
||||
"hint": "The products the screen opens on.",
|
||||
"none": "All products"
|
||||
},
|
||||
"receipt_printer_id": {
|
||||
"label": "Receipt printer (cash drawer)",
|
||||
"hint": "Its cash drawer opens on cash payments.",
|
||||
"none": "No printer"
|
||||
},
|
||||
"auto_sign_out_minutes": {
|
||||
"label": "Sign out after",
|
||||
"hint": "Back to the sign-in screen when nobody has used the screen for this long.",
|
||||
|
||||
@@ -161,5 +161,49 @@
|
||||
"taken_by_me": "You're on it",
|
||||
"released": "Let go"
|
||||
}
|
||||
},
|
||||
"pos": {
|
||||
"allProducts": "All products",
|
||||
"search": "Search products",
|
||||
"clearSearch": "Clear the search",
|
||||
"noResults": "Nothing matches “{{query}}”",
|
||||
"noProducts": "No products here",
|
||||
"orderType": "Order type",
|
||||
"type": {
|
||||
"takeaway": "Takeaway",
|
||||
"here": "Eat in"
|
||||
},
|
||||
"cartEmpty": "The cart is empty",
|
||||
"cartEmptyBody": "Tap a product to add it. The (i) button shows its price without adding it.",
|
||||
"total": "Total",
|
||||
"clearCart": "Clear the cart",
|
||||
"quoteFailed": "Couldn't price the cart. Check the choices and try again.",
|
||||
"checkPrice": "Price and details of {{name}}",
|
||||
"less": "One less",
|
||||
"more": "One more",
|
||||
"each": "{{price}} each",
|
||||
"dialog": {
|
||||
"close": "Close",
|
||||
"add": "Add to cart",
|
||||
"pickOne": "choose one",
|
||||
"quick": "Add-ons",
|
||||
"extras": "Extras",
|
||||
"without": "Without",
|
||||
"note": "Note for the kitchen",
|
||||
"quantity": "Quantity",
|
||||
"missing": "Still to choose: {{list}}"
|
||||
},
|
||||
"gate": {
|
||||
"dayClosed": "The business day isn't open",
|
||||
"dayOpeners": "Ask someone who can open it: {{names}}.",
|
||||
"dayOpenersNone": "Nobody here can open it yet; set it up in the manager.",
|
||||
"noShift": "You don't have a shift running",
|
||||
"askManager": "Ask a manager to start your shift, then try again.",
|
||||
"startTitle": "Start your shift",
|
||||
"startBody": "The cash you take at this counter goes to your shift.",
|
||||
"startingCash": "Cash in the drawer now",
|
||||
"badAmount": "Enter an amount, e.g. 50 or 50,00",
|
||||
"start": "Start shift"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user