mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] l10n_us_hr_payroll: CA California SIT underflow
This commit is contained in:
@@ -93,6 +93,8 @@ def ca_california_state_income_withholding(payslip, categories, worked_days, inp
|
|||||||
elif sit_allowances > 0:
|
elif sit_allowances > 0:
|
||||||
deduction = exemption_allowances[allowance_index]
|
deduction = exemption_allowances[allowance_index]
|
||||||
withholding -= deduction
|
withholding -= deduction
|
||||||
|
|
||||||
|
if withholding < 0.0:
|
||||||
|
withholding = 0.0
|
||||||
withholding += additional
|
withholding += additional
|
||||||
return wage, -((withholding / wage) * 100.0)
|
return wage, -((withholding / wage) * 100.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user