Correcting and voiding a receipt: with a document, not by rewriting
If the receipt hasn't reached the customer yet, it can be declared spoiled. If the customer already has it, the receipt can't be rewritten retroactively, so it needs a correction or voiding document, in its own numbering series.
Two paths, and the program asks
The correction button doesn't open the confirmation right away. It asks what happened: the customer didn't get it, or got it and the transaction changed. The two legally require different documents, and the wrong choice would make the day's data report false.
The document carries only the difference
For a modification, the document shows what actually changed, and a voiding document offsets the original. The document goes into the data report of its own issue date, so we don't rewrite a day already reported. The original receipt remains a validly issued document, just as it is at the customer.
In short
- Spoiled receipt: only on the day of issue and only before sending
- Receipt correction and voiding documents in their own series
- Mandatory reason and reference to the original receipt on the document image
- Handled separately in the daily report, without retroactive rewriting

