Skip to main content

Function: addPaymentAdjustment()

addPaymentAdjustment(_prev, formData): Promise<AdjustmentState>

Defined in: src/server/actions/paymentAdjustments.ts:45

Owner-only: attach a misc pay item (bonus / allowance / reimbursement / deduction / advance / other) to a payment that has not yet been disbursed. The DB trigger recomputes the payment total (base + Σ adjustments) and is the authoritative guard; we re-check here for a friendly message.

Parameters

_prev

AdjustmentState

formData

FormData

Returns

Promise<AdjustmentState>