Void is the only correct way to declare that an invoice should not exist. It is not the same as refund (which gives money back on an invoice that did exist) and it is not a soft synonym for "cancel" (which we no longer have). A void resets accounting, inventory, commissions, and package credits in one auditable step, and it is gated by a single hard rule: the invoice must carry no settled payment. This article is the playbook every role should share before they touch the Void action.
Where it lives#
- Sales → Sales list → open invoice → ⋮ → Void: the only entry point.
- Sales → Sales list → row menu → Void: shortcut, hidden if the invoice has any payment.
- Review voided invoices and their audit information from the invoice records. There is no dedicated Void register page in the staff frontend.
When to void#
- Invoice was created against the wrong patient / wrong branch / wrong date.
- Duplicate created by a network retry or a double-click.
- Counter sale abandoned, patient walked out, invoice was never paid and never will be.
- Test invoice that escaped to a real tenant.
If you are about to type "cancel this invoice", you mean void. There is only one terminal "this did not happen" status now.
When NOT to void, use Refund or Credit Note instead#
- The invoice has any payment with status paid. The system will block the void and route you to Refund.
- The invoice is VAT-finalized. The legal correction is a credit note, not a void.
- Service was delivered but the price was wrong. Use edit posted invoice with a correction reason, or a credit-note adjustment.
- Patient wants a partial refund. Voiding throws the whole invoice away. Refund the difference instead.
Hard preconditions, system-enforced#
| Check | If it fails |
|---|---|
is_locked = false (accounting period open) | 400, "Closed period. Ask Finance Manager to re-open before voiding." |
is_vat_finalized = false | 400, "VAT finalized. Use Credit Note." |
No payment with status = paid | 400 refund_required, link to Refund flow. |
| No delivered visits on invoice lines; the original sale entry must be identifiable | Use a credit note for a delivered visit or an unidentifiable legacy entry. |
| Reason text, non-empty (FE enforces min 10 chars; API accepts any non-empty string) | 400, "Reason is required." |
Caller has invoices.void_invoice permission | 403, "You don't have permission to void invoices." |
Role responsibilities#
| Role | Can initiate | Must do first | Approval / review |
|---|---|---|---|
| Reception | Yes, only if the invoice has no payments at all | Confirm the patient, type the reason | |
| Provider | No | ||
| Finance Officer | Yes, only if no paid payments remain | Refund any settled payment first, confirm bank-side clearance | |
| Finance Manager | Yes, same rule | Same. May re-open a locked period when necessary | Reviews the weekly Void register |
| Owner | Yes, same rule | Same | Final sign-off on policy |
There is no Finance Manager bypass on the paid-payments rule. Voiding a paid invoice without a refund is what historically broke the GL. A refund does not guarantee that a void becomes available: settled payment rows, delivered visits, VAT finalisation, a locked period, or an unidentifiable legacy sale entry can still block it. For a sale that occurred, use the credit-note correction instead.
What the system does automatically#
Once the void passes its preconditions, in one atomic transaction:
- Status flips to
VOID. The invoice remains as an audit record; voiding does not soft-delete it. - Audit row written with
voided_by,voided_at,void_reason. The row is immutable. InvoiceVoidedevent fires on the event bus.- GL reversal: a reversing journal entry is posted against the original Revenue / AR / COGS / Inventory / VAT lines, so the ledger nets to zero. Finance should review the resulting reversal and any failed downstream processing.
- Commission reversal: pending and approved commissions are flipped to
REVERSED. Paid commissions are handled according toCommissionPolicy.paid_commission_clawback_mode. Default ADJUSTMENT, which posts a negative line on the next payrun. The seller and provider are notified ifnotify_staff_on_reversal = true. - Inventory: the void listener restores every quantity the invoice consumed, and the GL reversal above unwinds the matching cost-of-goods entry, so stock and ledger move back together. Void always restocks; that is its contract, "this sale never happened". If the goods genuinely left the clinic and shouldn't come back, void is the wrong tool. Issue a credit note with restock off instead, which reverses the value but leaves the stock out and the cost expensed.
- Package credits: any sessions consumed against a package via this invoice are restored to
available. - Booking link: the session keeps its
consumed_invoice_itemFK on the voided invoice. The session is NOT auto-detached today. If you need to re-invoice the same session, open it and clear the consumed-item link manually, or contact ops to run the cleanup script. This is a known gap; auto-detach lands with the next void release.
What people still have to do#
- Reception: tell the patient, especially if a printed receipt was already handed over. Recover the printed receipt where possible.
- Finance Officer: when a refund precedes the void, confirm the refund cleared at the bank or processor before pressing Void. Voiding before the refund clears creates a window where the GL is reversed but the cash is still moving.
- Finance Manager: review the weekly Void register. Look for: voids without a matching refund in the prior 24 h, voids by reception on invoices that should have gone through finance, repeating reasons that point at training or workflow gaps.
- Owner: spot-check the register at month end. The void rate is a leading indicator of training, software friction, or, occasionally, fraud.
Scenarios end to end#
S1, counter sale to wrong patient, never paid#
Reception realises the invoice was attached to the wrong patient before any payment is taken. Reception opens the invoice → Void → reason "wrong patient, not paid". One transaction, no GL impact (nothing was posted yet), no inventory impact (no delivered products), no commission impact (nothing was accrued because nothing was paid). Audit row only.
S2, service invoice abandoned#
Patient was billed for a consultation, walked out before paying, didn't return. The next day reception opens the invoice → Void → reason "patient did not return, never paid". Same as S1, no settled payment so nothing to reverse beyond the audit row.
S3, paid invoice (cash) needs to disappear#
Reception took a cash payment by mistake on the wrong invoice. Correct order:
- Finance Officer issues a cash refund (full) on that invoice.
- Once the refund row is recorded, the paid-payments guard clears.
- Finance Officer opens the invoice → Void → reason "duplicate, refunded by R-2026-…". GL nets to zero (revenue reversal + refund reversal), commission reversed, inventory restocked.
S4, paid invoice (Stripe card) needs to disappear#
Same as S3 but the refund is routed through Stripe. Finance Officer waits for the Stripe refund to flip to succeeded in the Refund register before pressing Void, otherwise the cash leg has not really reversed yet.
S5, paid invoice with a physical product already handed over#
Patient bought a take-home serum and walked out with it. They later dispute and want money back, but the serum stays with them. Don't void here. Voiding would put the serum back on the shelf and hand you a count that's one unit too high, because the product genuinely left. Use a credit note with restock off:
- Open the paid invoice and issue a credit note against it, reason "customer dispute, product not returned".
- Leave restock off. The patient keeps the serum.
- The credit note reverses the revenue and VAT and leaves the stock out and the cost expensed, which is exactly right: the goods left, so the cost really happened. Refund the money owed alongside it.
If instead the patient hands the serum back, issue the credit note with restock on. The quantity returns to the lot and the cost of goods reverses with it. That switch is the whole decision.
S6, paid invoice that consumed a package session#
Reception accidentally consumed a session against the wrong package. Refund the invoice → Void. The InvoiceVoided listener finds the consumed session and restores it to available on the patient's package, with an audit line so the patient and the receptionist can both see what happened.
S7, VAT-finalized invoice#
The invoice was already included in a VAT submission. Void is blocked at the precondition stage. The system surfaces a "Use Credit Note" CTA. The credit note is the legal correction; the original invoice stays in the ledger for the auditors.
S8, invoice inside a closed accounting period#
The period has been closed by the Finance Manager (is_locked = true). Void is blocked. Finance Manager either re-opens the period (rare, with audit trail) and proceeds, or absorbs the correction in the current period via credit note.
S9, homecare visit already completed, paid, now disputed#
A homecare visit was delivered, paid, and the patient disputes after the fact. The visit happened; voiding is not the right tool. The right tool is a refund (full or partial). Void only enters the picture if the dispute escalates to "this visit should not have been billed at all", e.g. wrong patient, wrong service code, and even then only after the refund clears. Provider commission is clawed back per the commission policy.
S10, duplicate invoice from a network retry#
The frontend retried a save and created two identical invoices. The unpaid duplicate is voided immediately with reason "duplicate, network retry". No financial or inventory impact.
Partial void does not exist, three alternatives#
"Just void one of the line items" is a tempting shortcut, but the system does not support partial void. Voiding is an all-or-nothing reversal of the whole invoice. When you genuinely want to drop one line, pick the right tool:
- Edit the line, if no payment has been taken yet, just remove the line and save. The invoice recalculates.
- Edit-paid-invoice with a correction reason, after partial payment, the Edit flow handles the cross-module reconciliation (inventory, GL, commission). Pick correction reason Partial refund / item returned.
- Refund the line, leave the invoice, refund by item (pick the one line), the invoice stays Paid, a negative Payment captures the refund. Useful when the patient genuinely paid and you want a clean line-level refund audit.
Resorting to "refund everything, void the invoice, re-invoice the kept items" is the wrong shape, it inflates the void register, churns commission, and the GL has more entries than it needs.
Credit note vs void#
Void and credit note both reverse a sale. They don't overlap. Void is for an invoice that shouldn't exist and carries no settled payment. The credit note is for a paid sale you need to reverse. Reach for a credit note when:
- The invoice is VAT-finalized. Voiding is blocked at the precondition stage.
- The invoice is in a closed accounting period. Voiding is blocked.
- The invoice is paid and you'd rather reverse it in one legal document than refund + void + re-issue.
- The goods stay with the patient. A credit note with restock off reverses the value without pulling stock back. Void can't do that; it always restocks.
You raise the credit note from the invoice. It references the original (UN/CEFACT document type 381, linked by the original_invoice FK), creates a negative mirror of it, and reverses the sale in the ledger. One credit note per invoice; it credits the whole invoice, not single lines. When you leave restock on, the stock returns and the cost of goods reverses with it. The void dialog routes you here when it sees a VAT-finalized or closed-period invoice.
Why this protocol exists#
Until the void protocol was tightened, three things were broken: (1) voiding a paid invoice left the GL out of balance because no reversing journal was posted; (2) inventory counts diverged because restock listeners were missing; (3) two parallel concepts (cancel and void) did almost the same thing with different events, which made commission reports inconsistent. A single, audited Void with a refund-first rule keeps the GL trustworthy, lets month-end close run without manual journals, and makes commission claw-back honest.
Permission key#
invoices.void_invoice. Default grants: Reception ✓ (no-payment invoices only, enforced server-side), Finance Officer ✓, Finance Manager ✓, Owner ✓. Provider ✗.
Related#
- Invoices, overview: status meaning and quick paths.
- Invoices, deep workflow: edit, split, mixed payment.
- Refunds and credit notes: the prerequisite for voiding a paid invoice.
- Accounting cycle: where the GL reversal lands.
- Commissions: claw-back modes.
- Inventory, COGS and BOM: the
void_restockandvoid_writeoffmovements.
