A question when the quantity of a line changes
The customer asks: A question when the quantity of a line changes, before Pay
- Verdict: Ready, with limits (5)
- Door: Capture on an event · area: Till controls and approvals › Questions and details during the sale
- Recipe: A value captured at the scan, and a code before a new customer (capture)
- Sample: S20 — Warranty capture and a member code (capture)
- Checked: run by the product 2026-10-18 (the POS train's walk, counter, phone and tablet frames: a repeat scan, + in the line sheet and the variant card's Add each asked once; allowed, confirmed and refused back to the last allowed quantity); not run by a kit sample on a sandbox
What you build
A capture service on the quantity-change event (qty_change): when a line your filter names changes quantity, the till sends its last allowed quantity and the new one, and your service answers allow, confirm, refuse or a notice (recipes/capture.md, step 5c). Sample S20 adds a count on one line: up to the limits you set.
Limits
- Serial- and lot-tracked lines are outside it, as are a return's quantities and an order's change; a weighed line, a set, a gift card and an offer's companion item are never asked.
- A held, parked or converted sale comes back rebuilt: each line starts at the quantity it arrives with. Hold and Park ask first, so a refused quantity does not come back that way.
- A refusal or a No puts back the last allowed quantity. A burst of presses is asked once, 600 ms after the last.
- Offline, or when your answer never comes, the declared down answer applies; with
allow_and_flagthe change is flagged only when the sale is paid online or synced. - It shapes the cashier's flow; a rule that must hold when the sale is booked is a check before payment (the card line-quantity-cap).
Tell the customer
The till asks our service when the quantity of a named item changes, before Pay, and puts back the last allowed quantity on a refusal; serial- and lot-tracked items, returns and orders are not asked.
What next
- Tell the customer the 5 limits above, and write them into the proposal.
- Follow the recipe: A value captured at the scan, and a code before a new customer (capture).
- Copy the sample: S20 — Warranty capture and a member code (capture), and change it.
- Build and test it on your sandbox (request one if you have none; what is on it).
- Run the checks: your own tests, the kit's checks and the money kit's release gate (the release gate).
- Release through the customer's own release gate (The customer's release gate); an app other retailers install goes through the App library.
Test it with your service stopped: the till applies the answer you declared for when it is down.
Related needs
- No more than 50 of one item on a line — Ready, with limits (1)
- A beep and a yes-or-no question when the cashier scans an item we flagged — Ready, with limits (2)
- A one-time code sent to the customer before a new customer is made at the till — Ready, with limits (2)
- A warning when an item is scanned (another batch has less shelf life), with the cashier tapping to carry on — Ready, with limits (5)
Start a project shortlist with this need · Put it in your blueprint · Every need