WY Wyoming

This commit is contained in:
Jared Self
2021-01-13 21:43:37 -07:00
parent 8f72bfdd1e
commit 5d9a7ceda4
3 changed files with 22 additions and 68 deletions

View File

@@ -7,16 +7,17 @@
<field name="country_id" ref="base.us"/>
</record>
<data noupdate="1">
<record id="rule_parameter_us_wy_suta_wage_base_2019" model="hr.rule.parameter.value">
<field name="parameter_value">25400.00</field>
<field name="rule_parameter_id" ref="rule_parameter_us_wy_suta_wage_base"/>
<field name="date_from" eval="datetime(2019, 1, 1).date()"/>
</record>
<record id="rule_parameter_us_wy_suta_wage_base_2020" model="hr.rule.parameter.value">
<field name="parameter_value">26400.00</field>
<field name="rule_parameter_id" ref="rule_parameter_us_wy_suta_wage_base"/>
<field name="date_from" eval="datetime(2020, 1, 1).date()"/>
</record>
<!-- http://wyomingworkforce.org/businesses/ui/utwb/ -->
<record id="rule_parameter_us_wy_suta_wage_base_2021" model="hr.rule.parameter.value">
<field name="parameter_value">27300.00</field>
<field name="rule_parameter_id" ref="rule_parameter_us_wy_suta_wage_base"/>
<field name="date_from" eval="datetime(2021, 1, 1).date()"/>
</record>
</data>
<!-- Rate -->
@@ -26,11 +27,9 @@
<field name="country_id" ref="base.us"/>
</record>
<data noupdate="1">
<record id="rule_parameter_us_wy_suta_rate_2019" model="hr.rule.parameter.value">
<field name="parameter_value">2.10</field>
<field name="rule_parameter_id" ref="rule_parameter_us_wy_suta_rate"/>
<field name="date_from" eval="datetime(2019, 1, 1).date()"/>
</record>
<!-- Except as otherwise provided by law, the base rate of contributions assigned to any employer is eight and one-half percent (8.5%) -->
<!-- 27-3-503 (b) https://law.justia.com/codes/wyoming/2010/Title27/chapter3.html -->
<!-- 2020 Statuses > 20Titles > Title 27 > Chapter 3 > Article 5 > 27-3-503 > (b) -->
<record id="rule_parameter_us_wy_suta_rate_2020" model="hr.rule.parameter.value">
<field name="parameter_value">8.5</field>
<field name="rule_parameter_id" ref="rule_parameter_us_wy_suta_rate"/>

View File

@@ -1,58 +0,0 @@
# Part of Hibou Suite Professional. See LICENSE_PROFESSIONAL file for full copyright and licensing details.
from datetime import date
from .common import TestUsPayslip, process_payslip
class TestUsWYPayslip(TestUsPayslip):
# TAXES AND RATES
WY_UNEMP_MAX_WAGE = 25400
WY_UNEMP = -2.10 / 100.0
def test_2019_taxes(self):
salary = 15000.00
employee = self._createEmployee()
contract = self._createContract(employee,
wage=salary,
state_id=self.get_us_state('WY'))
self._log('2019 Wyoming tax first payslip:')
payslip = self._createPayslip(employee, '2019-01-01', '2019-01-31')
payslip.compute_sheet()
cats = self._getCategories(payslip)
self.assertPayrollEqual(cats['ER_US_SUTA'], salary * self.WY_UNEMP)
process_payslip(payslip)
# Make a new payslip, this one will have maximums
remaining_wy_unemp_wages = self.WY_UNEMP_MAX_WAGE - salary if (self.WY_UNEMP_MAX_WAGE - 2*salary < salary) \
else salary
self._log('2019 Wyoming tax second payslip:')
payslip = self._createPayslip(employee, '2019-02-01', '2019-02-28')
payslip.compute_sheet()
cats = self._getCategories(payslip)
self.assertPayrollEqual(cats['ER_US_SUTA'], remaining_wy_unemp_wages * self.WY_UNEMP)
def test_2019_taxes_with_external(self):
# Wage is the cap itself, 25400
# so salary is equal to self.WY_UNEMP
salary = 25400
employee = self._createEmployee()
contract = self._createContract(employee,
wage=salary,
state_id=self.get_us_state('WY'))
self._log('2019 Wyoming External tax first payslip:')
payslip = self._createPayslip(employee, '2019-01-01', '2019-01-31')
payslip.compute_sheet()
cats = self._getCategories(payslip)
self.assertPayrollEqual(cats['ER_US_SUTA'], salary * self.WY_UNEMP)

View File

@@ -0,0 +1,13 @@
# Part of Hibou Suite Professional. See LICENSE_PROFESSIONAL file for full copyright and licensing details.
from datetime import date
from .common import TestUsPayslip
class TestUsWYPayslip(TestUsPayslip):
# TAXES AND RATES
WY_UNEMP_MAX_WAGE = 27300.00
WY_UNEMP = 8.5
def test_2021_taxes(self):
self._test_er_suta('WY', self.WY_UNEMP, date(2021, 1, 1), wage_base=self.WY_UNEMP_MAX_WAGE)