mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[IMP] l10n_us_hr_payroll: Improved comments and test case for AR Arkansas 2020
This commit is contained in:
@@ -62,6 +62,8 @@
|
||||
<field name="rule_parameter_id" ref="rule_parameter_us_ar_sit_tax_rate"/>
|
||||
<field name="date_from" eval="datetime(2019, 1, 1).date()"/>
|
||||
</record>
|
||||
<!-- https://www.dfa.arkansas.gov/images/uploads/incomeTaxOffice/whformula.pdf-->
|
||||
<!-- Notover, percentage , minus adjustment page 1. 3.-->
|
||||
<record id="rule_parameter_us_ar_sit_tax_rate_2020" model="hr.rule.parameter.value">
|
||||
<field name="parameter_value">[
|
||||
( 4599, 0.0, 0.00),
|
||||
|
||||
@@ -18,7 +18,7 @@ def ar_arkansas_state_income_withholding(payslip, categories, worked_days, input
|
||||
|
||||
# Determine Wage
|
||||
wage = sit_wage(payslip, categories)
|
||||
if wage == 0.0:
|
||||
if not wage:
|
||||
return 0.0, 0.0
|
||||
|
||||
pay_periods = payslip.dict.get_pay_periods_in_year()
|
||||
|
||||
@@ -30,6 +30,6 @@ class TestUsARPayslip(TestUsPayslip):
|
||||
self._test_er_suta('AR', self.AR_UNEMP, date(2020, 1, 1), wage_base=self.AR_UNEMP_MAX_WAGE)
|
||||
self._test_sit(5000.0, True, 0.0, 0, 'monthly', date(2020, 1, 1), 0.0)
|
||||
self._test_sit(5000.0, False, 0.0, 0, 'monthly', date(2020, 1, 1), 221.0)
|
||||
self._test_sit(5000.0, False, 0.0, 150, 'monthly', date(2020, 1, 1), 371.0)
|
||||
self._test_sit(5000.0, False, 2.0, 0, 'monthly', date(2020, 1, 1), 217)
|
||||
self._test_sit(5000.0, False, 2.0, 150, 'monthly', date(2020, 1, 1), 367)
|
||||
self._test_sit(700.0, False, 0.0, 150, 'weekly', date(2020, 1, 1), 175.0)
|
||||
self._test_sit(7000.0, False, 2.0, 0, 'semi-monthly', date(2020, 1, 1), 420.0)
|
||||
self._test_sit(3000.0, False, 1.0, 0, 'bi-weekly', date(2020, 1, 1), 142.0)
|
||||
|
||||
Reference in New Issue
Block a user