feat(waiter): close with unpaid items as a setting, combine lines, seats (platform-v2 step 4.8a)
The owner's choices for 4.8 (2026-11-18), all configurable:
- Setting orders.close_with_unpaid (default off): when off, the server refuses to close
an order with unpaid items (pos.order_unpaid) and the phone's CLOSE takes the payment
first ("instant-pay close"); when on, CLOSE confirms and the items stay unpaid. Manager
Settings → Operation, next to "auto-close after full payment" (unchanged).
- POST /api/orders/{id}/items/combine: unpaid lines of the same item (choices, note,
price, course, kitchen state; no discount / deal / tab) become one line; the phone
offers "Combine into one line" for selected lines or a grouped line. The grouping
views (identical / same item) stay as they were.
- Seats: the table's seats next to its name on the cards (waiter Settings → Layout, on by
default) and in the guests dialog, where more guests than seats only shows a hint.
- The table screen's last English-only labels (ADD, PAY, CLOSE, ACTIONS, SERVED, CLEAR,
ALL) are keys too.
- Tests: test_close_and_combine.py (5), waiter e2e +5.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -311,7 +311,12 @@
|
||||
"operation": "Operation",
|
||||
"favorites": "Favourites"
|
||||
},
|
||||
"max": "maximum"
|
||||
"max": "maximum",
|
||||
"seats": {
|
||||
"title": "Seats",
|
||||
"label": "Show each table's seats",
|
||||
"desc": "On the table cards, next to the name (set by the manager per table)"
|
||||
}
|
||||
},
|
||||
"venues": {
|
||||
"active": "ACTIVE",
|
||||
@@ -457,7 +462,10 @@
|
||||
"moveSub": "Move the selected items",
|
||||
"splitSub": "Split into two lines",
|
||||
"cancel": "Cancel",
|
||||
"cancelSub": "Cancel the selected items"
|
||||
"cancelSub": "Cancel the selected items",
|
||||
"combine": "Combine into one line",
|
||||
"combineSub_one": "{{count}} line of the same item",
|
||||
"combineSub_other": "{{count}} lines of the same item"
|
||||
},
|
||||
"withApproval": "With a manager's approval (PIN)",
|
||||
"cancelNotAllowed": "Cancelling is not allowed",
|
||||
@@ -517,7 +525,8 @@
|
||||
"noTargetOrder": "No order found on that table",
|
||||
"merge": "Couldn't merge",
|
||||
"moveItems": "Couldn't move the items",
|
||||
"flags": "Couldn't save the flags"
|
||||
"flags": "Couldn't save the flags",
|
||||
"combine": "Couldn't combine the lines"
|
||||
},
|
||||
"openOrder": "Open an order",
|
||||
"noPaid": "No paid items",
|
||||
@@ -540,7 +549,9 @@
|
||||
},
|
||||
"close": {
|
||||
"title": "Close the order?",
|
||||
"body": "This can't be undone."
|
||||
"body": "This can't be undone.",
|
||||
"unpaid_one": "{{count}} item is unpaid: it will be closed as unpaid.",
|
||||
"unpaid_other": "{{count}} items are unpaid: they will be closed as unpaid."
|
||||
},
|
||||
"move": {
|
||||
"pickFree": "Choose a free table",
|
||||
@@ -574,6 +585,15 @@
|
||||
"tabs": {
|
||||
"unpaid": "Unpaid",
|
||||
"paid": "Paid"
|
||||
},
|
||||
"btn": {
|
||||
"close": "CLOSE",
|
||||
"add": "ADD",
|
||||
"pay": "€ PAY",
|
||||
"served": "SERVED",
|
||||
"actions": "ACTIONS",
|
||||
"clear": "CLEAR",
|
||||
"all": "ALL"
|
||||
}
|
||||
},
|
||||
"add": {
|
||||
@@ -779,5 +799,10 @@
|
||||
"cancelled": "CANCELLED",
|
||||
"limit_one": "Your plan shows the last {{count}} day",
|
||||
"limit_other": "Your plan shows the last {{count}} days"
|
||||
},
|
||||
"seats": {
|
||||
"table_one": "Table for {{count}}",
|
||||
"table_other": "Table for {{count}}",
|
||||
"over": "{{count}} guests at a table for {{seats}}: fine, it is only a suggestion"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user