Merge branch 'mig/12.0/l10n_us_hr_payroll__2020' into '12.0-test'

mig/12.0/l10n_us_hr_payroll__2020 into 12.0-test

See merge request hibou-io/hibou-odoo/suite!292
This commit is contained in:
Hibou Bot
2020-02-13 22:33:54 +00:00
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@
<record id="rule_parameter_us_il_suta_rate_2020" model="hr.payroll.rate">
<field name="name">US IL Illinois SUTA Rate</field>
<field name="code">us_il_suta_rate</field>
<field name="parameter_value">3.130</field>
<field name="parameter_value">3.125</field>
<field name="date_from" eval="datetime(2020, 1, 1).date()"/>
</record>
</data>

View File

@@ -6,8 +6,8 @@ from .common import TestUsPayslip
class TestUsILPayslip(TestUsPayslip):
# Taxes and Rates
MI_UNEMP_MAX_WAGE = 12740.0
MI_UNEMP = 3.130
IL_UNEMP_MAX_WAGE = 12740.0
IL_UNEMP = 3.125
def _test_sit(self, wage, additional_withholding, basic_allowances, additional_allowances, schedule_pay, date_start, expected_withholding):
@@ -27,7 +27,7 @@ class TestUsILPayslip(TestUsPayslip):
self.assertPayrollEqual(cats.get('EE_US_SIT', 0.0), -expected_withholding)
def test_2020_taxes_example(self):
self._test_er_suta('IL', self.MI_UNEMP, date(2020, 1, 1), wage_base=self.MI_UNEMP_MAX_WAGE)
self._test_er_suta('IL', self.IL_UNEMP, date(2020, 1, 1), wage_base=self.IL_UNEMP_MAX_WAGE)
self._test_sit(800.0, 0.0, 2, 2, 'weekly', date(2020, 1, 1), 33.27)
self._test_sit(800.0, 10.0, 2, 2, 'weekly', date(2020, 1, 1), 43.27)
self._test_sit(2500.0, 0.0, 1, 1, 'monthly', date(2020, 1, 1), 110.04)