Function: generateHealthAllowance()
generateHealthAllowance(
batchId):Promise<HealthAllowanceState>
Defined in: src/server/actions/healthAllowance.ts:104
Owner-only: apply the health allowance to a draft pay run. Adds the configured amount
(getHealthAllowanceCentavos, default ₱20,000) as a payment_adjustment (kind allowance) to
every health_allowance_eligible contractor whose eligibility date (hire + 6 months) has passed
by the period end. Written as an adjustment so the existing net-pay recompute + payslip plumbing
applies unchanged. Idempotent within the run (a contractor who already has the item is skipped).
Mirrors the 13th-month provision; today the health allowance is added by hand. See ADR-0032.
Parameters
batchId
string
Returns
Promise<HealthAllowanceState>