Skip to main content

Function: unapplyCheck()

unapplyCheck(checkId): Promise<{ error?: string; ok: boolean; }>

Defined in: src/server/actions/checks.ts:667

Billing-domain staff: reverse a confirmed check — drop its applications, walk the money back off every invoice it touched, and return the check to the review queue. Same gate as confirm (D4): a biller who can apply a payment but not reverse one is incoherent, and the reversal is the strictly safer half.

This is the flow the void/delete/reissue/correct guards all point at when they say "unapply the payment first" (decisions.md D3). Whole-check only; re-confirming through the normal path is how a mis-targeted check gets re-placed, so there is no per-line assignment UI to build.

Parameters

checkId

string

Returns

Promise<{ error?: string; ok: boolean; }>