mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
Refactor to mitigate the fact that eligible 401(k) contributions reduce taxable wage (gross) but not FICA/FUTA etc.
This refactor bases all/most 'wage' categories off of BASIC instead of GROSS to allow all 'Income Tax' rules to continue to be based on GROSS.
This commit is contained in:
@@ -18,10 +18,10 @@ ytd += contract.external_wages
|
|||||||
remaining = 10000.0 - ytd
|
remaining = 10000.0 - ytd
|
||||||
if remaining <= 0.0:
|
if remaining <= 0.0:
|
||||||
result = 0
|
result = 0
|
||||||
elif remaining < categories.GROSS:
|
elif remaining < categories.BASIC:
|
||||||
result = remaining
|
result = remaining
|
||||||
else:
|
else:
|
||||||
result = categories.GROSS
|
result = categories.BASIC
|
||||||
</field>
|
</field>
|
||||||
<field name="appears_on_payslip" eval="False"/>
|
<field name="appears_on_payslip" eval="False"/>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class TestUsPAPayslip(TestUsPayslip):
|
|||||||
wh = -127.92
|
wh = -127.92
|
||||||
|
|
||||||
employee = self._createEmployee()
|
employee = self._createEmployee()
|
||||||
employee.company_id.pa_unemp_employee_rate_2018 = 0.06~
|
employee.company_id.pa_unemp_employee_rate_2018 = 0.06
|
||||||
employee.company_id.pa_unemp_company_rate_2018 = 3.6785
|
employee.company_id.pa_unemp_company_rate_2018 = 3.6785
|
||||||
employee.company_id.pa_withhold_rate_2018 = 3.07
|
employee.company_id.pa_withhold_rate_2018 = 3.07
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user