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:
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user