feat(backend,waiter,manager): prices changed by hand are on the record
Owner 2026-11-23 (plan 6F.3). services/price_changes.py: the venue's switch orders.price_change (off | before_sending | anytime, default anytime as before), orders.price_change_reason and its quick reasons; keys ordering.prices.modify (the cart), new modify_sent (a sent or served line) and view_changes (who sees them). Every by-hand price (waiter cart, a sent line, the counter's % discount) writes a manual_price PriceEventLog row (before, after, quantity, who, approving manager, stage, reason) plus a PRICE_CHANGED audit row; before, the sent-line change overwrote the price with no record. Alembic 0047: event columns; modify_sent for everyone holding modify (and the venues' role overrides), view_changes for owners and store managers. Waiter: the reason picker when the venue asks, a sent line's price on modify_sent and the venue's switch, the line's price history. Manager: Settings -> Operation 'Prices changed by hand', the changes on the order's lines and history, Reports -> Cancellations, discounts and price changes (+ export). Counter: no discount when the venue turned price changes off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -528,7 +528,8 @@
|
||||
"merge": "Couldn't merge",
|
||||
"moveItems": "Couldn't move the items",
|
||||
"flags": "Couldn't save the flags",
|
||||
"combine": "Couldn't combine the lines"
|
||||
"combine": "Couldn't combine the lines",
|
||||
"price": "The price didn't change."
|
||||
},
|
||||
"openOrder": "Open an order",
|
||||
"noPaid": "No paid items",
|
||||
@@ -857,5 +858,27 @@
|
||||
"accepted": "Sent to the kitchen",
|
||||
"declined": "Declined",
|
||||
"note": "Note: {{note}}"
|
||||
},
|
||||
"price": {
|
||||
"reason": "Why does the price change?",
|
||||
"reasonMissing": "Say why the price changes",
|
||||
"reasons": {
|
||||
"regular": "Regular customer",
|
||||
"mistake": "Wrong price on the menu",
|
||||
"compensation": "Making up for a problem",
|
||||
"manager": "Manager's decision",
|
||||
"happyHour": "Offer of the day",
|
||||
"other": "Other"
|
||||
},
|
||||
"history": "Price history",
|
||||
"historySub": "Who changed it, when and why",
|
||||
"historyNone": "No price changes on this line.",
|
||||
"historyFailed": "The price history didn't load.",
|
||||
"stage": {
|
||||
"cart": "before sending",
|
||||
"sent": "after sending",
|
||||
"served": "after serving"
|
||||
},
|
||||
"approvedBy": "approved by {{name}}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user