Remove a discount from a ticket item
Remove an existing discount from selected unpaid ticket items on the TPV payment screen. Antylogic clears the item discount, removes the label, and recalculates the item and ticket totals before the operator continues charging the ticket.
In this article
Use this guide when a cashier or floor supervisor needs to correct a discounted item before taking payment. The action works from the TPV payment screen and applies only to selected pending items that still have no payment allocated to them.
Clearing a discount updates each eligible ticket item through the standard ticket-item update flow, then refreshes the payment screen with the corrected amount to charge.
Before you start
- The operator is on the TPV payment screen for a valid Harbor Soho ticket.
- At least one selected pending ticket item already has a discount.
- The selected discounted item has no payment allocated to it.
- The operator can use TPV and has discount authority through `tpv:discount` or ticket management permission.
Instructions
- 1.
Open the payment screen
Open the TPV payment screen for the active ticket. In the GB demo runtime, use `TPV_TICKET_ID` with `TPV_TERMINAL_ID` and Olivia Hart's `TPV_STAFF_ID`.
- 2.
Select the discounted item
Keep selected the pending item whose discount should be removed. Pending items are selected automatically when the payment screen opens or when the ticket changes.
- 3.
Choose Clear discount
Press Clear discount in the discount action row. The button is available only when at least one selected eligible item currently has a discount and the operator has discount permission.
- 4.
Check the updated amount
After the action finishes, the selected item no longer shows its discount and the payment screen reflects the recalculated amount to charge.
Validations and limits
- If the operator cannot use TPV, the payment screen does not load the ticket context.
- If the route has no `ticketId`, the screen shows a missing-ticket state.
- Only selected items with a pending amount greater than `0.0001` and no paid allocation are eligible.
- Items that already have no discount are ignored.
- Void tickets cannot be updated.
- Several discounted selected items are cleared with separate sequential item updates, so a later failure can leave earlier successful clears in place.
Expected result
The item discount amount is `0`, the discount label is empty, item subtotal, tax and total are recalculated, and the ticket totals and payment state are refreshed from the updated items and existing payments.