feat(backend,waiter,terminal,manager): +1 on a sent line and changing a line's quantity
Owner 2026-11-23 (plan 6F.5). Product flag one_more_enabled (off by default; product editor).
POST /api/orders/{id}/items/{item}/again: a new line like the old one (choices, removed, note,
course), priced now, sent to the kitchen like any new line. Waiter app and the counter's table
panel: +1 beside such lines; the first tap arms it, more taps count up, 'Send +N' sends, 4 s idle
disarms (no stray sends).
POST /api/orders/{id}/items/{item}/quantity: venue setting orders.quantity_change (off | add_only |
add_and_remove, default off), key ordering.items.change_quantity (owner, store manager; Alembic 0049
grants it); up only changes the line, down cuts a cancelled part ('quantity lowered', split_from_id)
and prints a cancellation only when asked (the dialog presets yes while the kitchen hasn't finished).
Waiter: 'Change quantity' in a line's actions (now -> new, -/+). cut_part() now shared with split.
GET /api/orders/{id} items carry the product's one_more_enabled / unit_type, deal ids, split_from_id,
cancel_reason.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -759,6 +759,18 @@
|
||||
"reasonsHint": "Offered with one tap; staff can still type their own. None: the built-in ones.",
|
||||
"reasonItem": "Quick reason",
|
||||
"newReason": "A new quick reason…"
|
||||
},
|
||||
"quantity": {
|
||||
"title": "Changing a sent line's quantity",
|
||||
"intro": "Staff correct how many of a line there are without sending it to the kitchen again. Every change is kept in the order's history.",
|
||||
"when": "Staff may",
|
||||
"whenHint": "Who may: \"What each role may do\" and each person's permissions.",
|
||||
"whenTip": "Only add: the quantity can go up (a beer taken from the fridge), nothing is printed. Add and remove: lowering it also cancels the difference as its own cancelled line, and asks whether to send a cancellation to the kitchen. Removing needs the permission to cancel too.",
|
||||
"modes": {
|
||||
"off": "Not at all",
|
||||
"add_only": "Only add",
|
||||
"add_and_remove": "Add and remove"
|
||||
}
|
||||
}
|
||||
},
|
||||
"logs": {
|
||||
@@ -2813,7 +2825,10 @@
|
||||
"availableTip": "Off: it disappears from the waiters' and the counter's menus until you switch it back on (sold out today). Nothing else about it changes.",
|
||||
"quickAddTip": "On: one tap in the waiter's product list adds it straight to the order without opening its choices. Leave it off for products whose choices must be picked (cooking, sides).",
|
||||
"vatGroupTip": "The VAT rate the fiscal receipt uses for this product. Needed before it can be paid while the fiscal device is on.",
|
||||
"costTip": "What one unit costs you (ingredients, packaging). Reports use it for the profit; products without a cost make the profit a lower estimate."
|
||||
"costTip": "What one unit costs you (ingredients, packaging). Reports use it for the profit; products without a cost make the profit a lower estimate.",
|
||||
"oneMore": "One more (+1)",
|
||||
"oneMoreHint": "A sent line of this product gets a +1 button on the phones and the counter.",
|
||||
"oneMoreTip": "For what tables keep ordering again (beers, coffees). +1 orders the same again, with the same choices and note, at today's price, and sends it to the kitchen or bar like any new order. Off by default."
|
||||
}
|
||||
},
|
||||
"menuTabletSettings": {
|
||||
@@ -3392,7 +3407,9 @@
|
||||
"ORDER_CANCELLED": "Cancelled",
|
||||
"ITEM_CANCELLED": "Line cancelled",
|
||||
"PRICE_CHANGED": "Price changed",
|
||||
"PRICE_SET_BY_HAND": "Price set by hand (approved)"
|
||||
"PRICE_SET_BY_HAND": "Price set by hand (approved)",
|
||||
"QUANTITY_CHANGED": "Quantity changed",
|
||||
"ITEM_REORDERED": "One more"
|
||||
},
|
||||
"price": {
|
||||
"modifier_applied": "Price rule",
|
||||
|
||||
Reference in New Issue
Block a user