mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
WV West Virginia
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
<field name="country_id" ref="base.us"/>
|
||||
</record>
|
||||
<data noupdate="1">
|
||||
<!-- Unchanged for 2021 https://workforcewv.org/images/files/employers/Employer_Handbook.pdf -->
|
||||
<record id="rule_parameter_us_wv_suta_wage_base_2020" model="hr.rule.parameter.value">
|
||||
<field name="parameter_value">12000.0</field>
|
||||
<field name="rule_parameter_id" ref="rule_parameter_us_wv_suta_wage_base"/>
|
||||
@@ -21,12 +22,14 @@
|
||||
<field name="country_id" ref="base.us"/>
|
||||
</record>
|
||||
<data noupdate="1">
|
||||
<!-- Unchanged for 2021 https://workforcewv.org/images/files/employers/Employer_Handbook.pdf -->
|
||||
<record id="rule_parameter_us_wv_suta_rate_2020" model="hr.rule.parameter.value">
|
||||
<field name="parameter_value">2.7</field>
|
||||
<field name="rule_parameter_id" ref="rule_parameter_us_wv_suta_rate"/>
|
||||
<field name="date_from" eval="datetime(2020, 1, 1).date()"/>
|
||||
</record>
|
||||
</data>
|
||||
|
||||
<!-- Table base on this https://tax.wv.gov/Documents/TaxForms/it100.1a.pdf page 16-->
|
||||
<record id="rule_parameter_us_wv_sit_exemption_rate" model="hr.rule.parameter">
|
||||
<field name="name">US WV West Virginia Exemption Rate</field>
|
||||
@@ -34,6 +37,7 @@
|
||||
<field name="country_id" ref="base.us"/>
|
||||
</record>
|
||||
<data noupdate="1">
|
||||
<!-- Unchanged for 2021 https://tax.wv.gov/Documents/TaxForms/it100.1a.pdf -->
|
||||
<record id="rule_parameter_us_wv_sit_exemption_rate_2020" model="hr.rule.parameter.value">
|
||||
<field name="parameter_value">{
|
||||
'weekly' : 38.46,
|
||||
@@ -53,6 +57,7 @@
|
||||
<field name="country_id" ref="base.us"/>
|
||||
</record>
|
||||
<data noupdate="1">
|
||||
<!-- Unchanged in 2021 https://tax.wv.gov/Documents/TaxForms/it100.1a.pdf -->
|
||||
<record id="rule_parameter_us_wv_sit_tax_rate_2020" model="hr.rule.parameter.value">
|
||||
<field name="parameter_value">{
|
||||
'single': {
|
||||
|
||||
36
l10n_us_hr_payroll/tests/test_us_wv_west_virginia_payslip_2021.py
Executable file
36
l10n_us_hr_payroll/tests/test_us_wv_west_virginia_payslip_2021.py
Executable file
@@ -0,0 +1,36 @@
|
||||
# Part of Hibou Suite Professional. See LICENSE_PROFESSIONAL file for full copyright and licensing details.
|
||||
|
||||
from datetime import date, timedelta
|
||||
from .common import TestUsPayslip
|
||||
|
||||
|
||||
class TestUsWVPayslip(TestUsPayslip):
|
||||
###
|
||||
# 2021 Taxes and Rates
|
||||
###
|
||||
WV_UNEMP_MAX_WAGE = 12000.0
|
||||
WV_UNEMP = 2.7
|
||||
# Calculation based on example https://tax.wv.gov/Documents/TaxForms/it100.1a.pdf
|
||||
|
||||
def _test_sit(self, wage, filing_status, exemption, additional_withholding, schedule_pay, date_start, expected_withholding):
|
||||
employee = self._createEmployee()
|
||||
contract = self._createContract(employee,
|
||||
wage=wage,
|
||||
state_id=self.get_us_state('WV'),
|
||||
wv_it104_sit_filing_status=filing_status,
|
||||
wv_it104_sit_exemptions=exemption,
|
||||
state_income_tax_additional_withholding=additional_withholding,
|
||||
schedule_pay=schedule_pay)
|
||||
payslip = self._createPayslip(employee, date_start, date_start + timedelta(days=7))
|
||||
payslip.compute_sheet()
|
||||
cats = self._getCategories(payslip)
|
||||
|
||||
self._log('Computed period tax: ' + str(expected_withholding))
|
||||
self.assertPayrollEqual(cats.get('EE_US_SIT', 0.0), -expected_withholding)
|
||||
|
||||
def test_2021_taxes_example(self):
|
||||
self._test_er_suta('WV', self.WV_UNEMP, date(2021, 1, 1), wage_base=self.WV_UNEMP_MAX_WAGE)
|
||||
self._test_sit(1250, 'married', 2, 0, 'semi-monthly', date(2021, 1, 1), 44.00)
|
||||
self._test_sit(1300, 'single', 1, 0, 'bi-weekly', date(2021, 1, 1), 46.00)
|
||||
self._test_sit(1300, 'single', 1, 10, 'bi-weekly', date(2021, 1, 1), 56.00)
|
||||
self._test_sit(15000, 'single', 2, 0, 'monthly', date(2021, 1, 1), 860.00)
|
||||
Reference in New Issue
Block a user