mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
NE Nebraska
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
<field name="country_id" ref="base.us"/>
|
<field name="country_id" ref="base.us"/>
|
||||||
</record>
|
</record>
|
||||||
<data noupdate="1">
|
<data noupdate="1">
|
||||||
|
<!-- Same for 2021 https://dol.nebraska.gov/webdocs/Resources/Items/2021%20UI%20Tax%20Rate%20Guide.pdf -->
|
||||||
<record id="rule_parameter_us_ne_suta_wage_base_2020" model="hr.rule.parameter.value">
|
<record id="rule_parameter_us_ne_suta_wage_base_2020" model="hr.rule.parameter.value">
|
||||||
<field name="parameter_value">9000.0</field>
|
<field name="parameter_value">9000.0</field>
|
||||||
<field name="rule_parameter_id" ref="rule_parameter_us_ne_suta_wage_base"/>
|
<field name="rule_parameter_id" ref="rule_parameter_us_ne_suta_wage_base"/>
|
||||||
@@ -26,7 +27,15 @@
|
|||||||
<field name="rule_parameter_id" ref="rule_parameter_us_ne_suta_rate"/>
|
<field name="rule_parameter_id" ref="rule_parameter_us_ne_suta_rate"/>
|
||||||
<field name="date_from" eval="datetime(2020, 1, 1).date()"/>
|
<field name="date_from" eval="datetime(2020, 1, 1).date()"/>
|
||||||
</record>
|
</record>
|
||||||
|
<!-- https://dol.nebraska.gov/webdocs/Resources/Items/2021%20UI%20Tax%20Rate%20Guide.pdf -->
|
||||||
|
<!-- Under "Employers Without an Experience Rating "the lesser of the category 12 rate or 2.5%" -->
|
||||||
|
<record id="rule_parameter_us_ne_suta_rate_2021" model="hr.rule.parameter.value">
|
||||||
|
<field name="parameter_value">2.5</field>
|
||||||
|
<field name="rule_parameter_id" ref="rule_parameter_us_ne_suta_rate"/>
|
||||||
|
<field name="date_from" eval="datetime(2021, 1, 1).date()"/>
|
||||||
|
</record>
|
||||||
</data>
|
</data>
|
||||||
|
|
||||||
<!-- Table based on Percentage method from https://revenue.nebraska.gov/sites/revenue.nebraska.gov/files/doc/business/2017cir-en_whole.pdf -->
|
<!-- Table based on Percentage method from https://revenue.nebraska.gov/sites/revenue.nebraska.gov/files/doc/business/2017cir-en_whole.pdf -->
|
||||||
<record id="rule_parameter_us_ne_sit_tax_rate" model="hr.rule.parameter">
|
<record id="rule_parameter_us_ne_sit_tax_rate" model="hr.rule.parameter">
|
||||||
<field name="name">US NE Nebraska SIT Tax Rate</field>
|
<field name="name">US NE Nebraska SIT Tax Rate</field>
|
||||||
@@ -34,6 +43,8 @@
|
|||||||
<field name="country_id" ref="base.us"/>
|
<field name="country_id" ref="base.us"/>
|
||||||
</record>
|
</record>
|
||||||
<data noupdate="1">
|
<data noupdate="1">
|
||||||
|
<!-- unchanged in 2021 https://revenue.nebraska.gov/businesses/nebraska-income-tax-withholding -->
|
||||||
|
<!-- see note "Continue using these tables for 2021 -->
|
||||||
<record id="rule_parameter_us_ne_sit_tax_rate_2020" model="hr.rule.parameter.value">
|
<record id="rule_parameter_us_ne_sit_tax_rate_2020" model="hr.rule.parameter.value">
|
||||||
<field name="parameter_value">{
|
<field name="parameter_value">{
|
||||||
'single': {
|
'single': {
|
||||||
|
|||||||
38
l10n_us_hr_payroll/tests/test_us_ne_nebraska_payslip_2021.py
Normal file
38
l10n_us_hr_payroll/tests/test_us_ne_nebraska_payslip_2021.py
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
# 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 TestUsNEPayslip(TestUsPayslip):
|
||||||
|
###
|
||||||
|
# 2021 Taxes and Rates
|
||||||
|
###
|
||||||
|
NE_UNEMP_MAX_WAGE = 9000.0
|
||||||
|
NE_UNEMP = 2.5
|
||||||
|
|
||||||
|
def _test_sit(self, wage, filing_status, exempt, additional_withholding, allowances, schedule_pay, date_start, expected_withholding):
|
||||||
|
employee = self._createEmployee()
|
||||||
|
contract = self._createContract(employee,
|
||||||
|
wage=wage,
|
||||||
|
state_id=self.get_us_state('NE'),
|
||||||
|
ne_w4n_sit_filing_status=filing_status,
|
||||||
|
state_income_tax_exempt=exempt,
|
||||||
|
state_income_tax_additional_withholding=additional_withholding,
|
||||||
|
ne_w4n_sit_allowances=allowances,
|
||||||
|
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.assertPayrollAlmostEqual(cats.get('EE_US_SIT', 0.0), -expected_withholding)
|
||||||
|
|
||||||
|
def test_2021_taxes_example(self):
|
||||||
|
self._test_er_suta('NE', self.NE_UNEMP, date(2021, 1, 1), wage_base=self.NE_UNEMP_MAX_WAGE)
|
||||||
|
self._test_sit(750.0, 'single', False, 0.0, 2, 'weekly', date(2021, 1, 1), 27.53)
|
||||||
|
self._test_sit(9500.0, 'single', False, 0.0, 1, 'bi-weekly', date(2021, 1, 1), 612.63)
|
||||||
|
self._test_sit(10500.0, 'married', False, 0.0, 1, 'bi-weekly', date(2021, 1, 1), 659.85)
|
||||||
|
self._test_sit(9500.0, 'single', True, 0.0, 1, 'bi-weekly', date(2021, 1, 1), 0.0)
|
||||||
|
self._test_sit(10500.0, 'single', False, 10.0, 2, 'monthly', date(2021, 1, 1), 625.2)
|
||||||
|
self._test_sit(4000.0, 'single', False, 0.0, 1, 'monthly', date(2021, 1, 1), 179.44)
|
||||||
Reference in New Issue
Block a user