[FIX] l10n_us_hr_payroll: CA California SIT underflow

This commit is contained in:
yur@hibou.io
2022-01-04 11:54:31 -06:00
parent 52aca66227
commit a2cdf30fbd

View File

@@ -94,5 +94,7 @@ def ca_california_state_income_withholding(payslip, categories, worked_days, inp
deduction = exemption_allowances[allowance_index]
withholding -= deduction
if withholding < 0.0:
withholding = 0.0
withholding += additional
return wage, -((withholding / wage) * 100.0)