When a sale is entered wrong or falls through, you void it rather than delete it. A voided transaction stays on record for the audit trail but drops out of all the money math.
Voiding never erases the row — that history is intentional. To fix a mistake, void the bad transaction and enter a correction that links back to it.
Technical section
Data model, API, and internals — visible to developers.
