952 B
952 B
Project Plan: Time Exempt Deductions
Context
The HR team requires that even if an employee's salary profile is marked as "Time Exempt", the system must still deduct for tardiness (Late) and early departures (Undertime). However, the Time Exempt status will continue to block Night Differential and Regular Overtime calculations.
Phase 1: Update Time Exempt Logic
- File:
app/Services/PayrollService.php - Action: Modify the
is_time_exemptoverride block. - Details: Remove the lines that zero out
$lateDeductionand$undertimeDeduction. Leave the overrides that zero out$nightDiffAmountand$regularOtTotal.
Phase 2: Verification
- Run a payroll test calculation for
Paul Rei Paas(who is Time Exempt and has late hours). - Verify that a
Late Deductionand/orUndertime Deductionline item appears in his deductions array. - Verify that
Night Differentialremains zero, honoring the exemption status.