feat(exit): manual-exit dialog + wording — styled modal replaces window.prompt; copy says 'manual exit' / 'dalje manuale'
Build & push images / images (push) Successful in 3m13s
Build & push images / images (push) Successful in 3m13s
- BoothScreen: the no-ticket open uses the app's Modal (explainer, optional reason, red confirm; Enter confirms, Escape/Cancel abort) instead of a browser prompt. - en/sq: forgive/forgiven/forgone wording dropped from every user-facing string (buttons, dialog, results, live-feed reasons, shift figures); Albanian edited by the user, English aligned. Printed Z line is 'Dalje manuale (N)'. The signed English fallback sentences follow. Identifiers (exit.forgiven, forgoneMinor, barrier:create) unchanged. - wiki: forgiven-exit §Wording, shift, log.
This commit is contained in:
@@ -77,7 +77,7 @@ unchanged) and on the ticket being closed.
|
||||
role from Setup → Roles — "the owner can give permission to other operators" (user).
|
||||
- **`PayStation.forgive(identity, { operator, note })`** — quotes the fee as the pay flow
|
||||
would, signs `payment { amountMinor: 0, forgoneMinor: <quote>, operator, reasonCode:
|
||||
"exit.forgiven", reason: "forgiven exit by X — fee of N CUR waived: <note>" }` with **no
|
||||
"exit.forgiven", reason: "manual exit by X — fee of N CUR, no payment: <note>" }` with **no
|
||||
tender** (nothing was tendered), marks the projection paid. Refuses (409) when the quote
|
||||
carries module charge lines (a wash on the ticket): parking is forgiven, a wash is not.
|
||||
- **`ExitFlow.reopenBarrier(id, operator, { forgiven })`** — the existing human-intervention
|
||||
@@ -91,13 +91,19 @@ unchanged) and on the ticket being closed.
|
||||
gate (`409 no_shift`); the note is optional; no identity = the no-session path.
|
||||
- **Z-report**: `forgoneTotalMinor` + `forgoneCount` summed from `forgoneMinor` (never into
|
||||
cash/card; `discountTotalMinor` untouched), on the signed `shift_z_report` only when > 0, one
|
||||
print line `Dalje të falura (N): X`, shown in the X-report, the close confirm and history.
|
||||
print line `Dalje manuale (N): X`, shown in the X-report, the close confirm and history.
|
||||
- **Web**: in the pay/exit modal a red ghost "Forgive & open" for an OPEN transient that owes
|
||||
money (unpaid or overstay) → reason box → "Confirm — open exit, no payment"; on the booth
|
||||
header a "Forgive & open exit" next to the exit lane light for the no-ticket case
|
||||
(`window.prompt` for the reason — Cancel aborts, empty proceeds). Both only render with
|
||||
(a small styled dialog, same chrome as every other form — optional reason, red confirm). Both only render with
|
||||
`barrier:create` + own open shift.
|
||||
Live-feed reason texts in en/sq. **Nothing is printed.**
|
||||
- Tests: exit-flow (ticketed + no-session), pay-station (`forgive`), shift-service (totals
|
||||
untouched, own line, history), routes (403 without the permission, 409 no shift, 400 no
|
||||
note accepted, ledger sequence entry→payment→anomaly→exit, report figures).
|
||||
|
||||
**Wording (user, 2026-10-09).** The user-facing words are **"manual exit" / "dalje manuale"**,
|
||||
not forgive/forgiven/forgone — too much "fal, falur, falje" (user). Applies to both language
|
||||
files, the printed Z-report line (`Dalje manuale (N)`) and the signed English fallback
|
||||
sentences. Internal names stay (`exit.forgiven`, `forgoneMinor`, `barrier:create`) — they
|
||||
are code identifiers, not copy.
|
||||
|
||||
Reference in New Issue
Block a user