Skip to main content

Function: setBatchPaidDate()

setBatchPaidDate(batchId, paidDate): Promise<EditState>

Defined in: src/server/actions/paymentEdits.ts:173

Owner: set the actual paid date on every already-paid payment in a batch — for when the money went out days before someone clicked "Mark all paid". Stored as midnight UTC so every reader (which all render the UTC date) shows exactly the chosen calendar date. Unpaid rows untouched.

Parameters

batchId

string

paidDate

string

Returns

Promise<EditState>