Function: writeOffInvoice()
writeOffInvoice(
input):Promise<ArActionResult>
Defined in: src/server/actions/ar.ts:305
Owner-only: mark a receivable uncollectible. A FLAG, not a status (ADR-0053) — the invoice keeps its status and stays in the check-allocation pool, so a surprise late check still lands on it instead of stranding as unapplied leftover. Reversible via reinstateWriteOff.
Parameters
input
invoiceId
string
reason
string
Returns
Promise<ArActionResult>