feat(exit): forgiven exit — open the exit barrier with no payment (barrier:create)
Build & push images / images (push) Successful in 3m23s
Build & push images / images (push) Successful in 3m23s
The owner (or any role the owner grants barrier:create) lets a car out for free.
Exit side only. Every use is signed, attributed, photographed and on the operator's
Z-report; the shift's cash/card/drawer are untouched by construction.
- shared: resource 'barrier' + permission 'barrier:create'; reason codes
exit.forgiven / exit.forgiven.noSession; LedgerPayload.forgoneMinor.
- pay-station: forgive() signs a $0 payment carrying the quoted fee as forgoneMinor
(no tender), refuses a ticket with module charge lines (a wash is not forgiven).
- exit-flow: reopenBarrier(..., { forgiven }) bypasses the walk-back check and stamps
the forgiven reason on the anomaly + vehicle_exit; forgiveExitNoSession() for a car
with no ticket (anomaly under forgiven:<id> + exit snapshot + pulse). Relay driving
shared in #pulseExit.
- route POST /api/barrier/forgive { identity?, note? }: barrier:create + open shift;
the reason is optional (an empty note is signed as '(no reason given)').
- shift-service: forgoneTotalMinor + forgoneCount on the report/summary/signed
shift_z_report (only when > 0), print line 'Dalje të falura (N)'.
- web: 'Forgive & open' in the pay/exit modal for an open transient that owes money;
'Forgive & open exit' on the booth header for the no-ticket case; forgone line on
the X-report, close confirm and history; en/sq. Prints nothing.
- tests: exit-flow, pay-station, shift-service, HTTP route (403 without the
permission, 409 no shift, empty note accepted, ledger sequence, report figures).
- wiki: decisions/forgiven-exit.md (decision + as-built), booth-exit-flow, shift,
index, log.
This commit is contained in:
@@ -204,6 +204,17 @@ filter shows a `matched/total` count). No new API — filtering is over data alr
|
||||
segment — **booth** (operator-initiated, `source: manual`) vs **reader** (device-initiated:
|
||||
wiegand/lpr/qr/ticket). Filters are scoped within the current shift window, as the feed already is.
|
||||
|
||||
## Forgiven exit — open with NO payment (built 2026-10-08)
|
||||
|
||||
The one human-intervention open that is allowed to skip the payment: an operator holding
|
||||
**`barrier:create`** (admin by default; the owner grants it per role) lets a car out for free.
|
||||
Decision + as-built in [[forgiven-exit]]. In short: a ticketed car gets a **$0 `payment`
|
||||
carrying `forgoneMinor`** (the fee it owed) then the same re-open path as above (anomaly +
|
||||
`vehicle_exit` with `exit.forgiven`); a car with no session gets an anomaly under a
|
||||
`forgiven:<id>` ref + the pulse. Reason optional, open shift required, **nothing printed**,
|
||||
and the forgone amount is its own Z-report line — never inside cash/card ([[shift]]). The
|
||||
no-unpaid-bypass rule above still holds for everyone without that permission.
|
||||
|
||||
## ⚠ Open question — walk-back grace renews on every payment (voucher overstay)
|
||||
|
||||
> **Update 2026-06-20 — pricing half resolved; grace-renewal half still open.** The overstay work
|
||||
|
||||
Reference in New Issue
Block a user