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:
2026-11-14 21:55:30 +02:00
co-authored by Claude Opus 5.5
parent b1112b249e
commit 17bee66df1
25 changed files with 1556 additions and 21 deletions
+19 -1
View File
@@ -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": "Επιστροφή στην οθόνη σύνδεσης όταν κανείς δεν έχει χρησιμοποιήσει την οθόνη για τόσο χρόνο.",