Guard against 0 New Jersey WorkForce rate. Remove broken New York test.

This commit is contained in:
Jared Kipe
2018-08-15 13:35:20 -07:00
parent 25839f4aed
commit 50da6a7bbb
2 changed files with 3 additions and 15 deletions

View File

@@ -201,6 +201,9 @@ else:
<field name="amount_python_compute">
result_rate = -contract.nj_wf_rate(2018)
result = categories.NJ_WF_WAGES
if result_rate == 0.0:
result = 0.0
</field>
<field name="register_id" ref="contrib_register_njdor_wf"/>
<field name="appears_on_payslip" eval="False"/>

View File

@@ -150,18 +150,3 @@ class TestUsNYPayslip(TestUsPayslip):
self.assertPayrollEqual(cats['NY_WITHHOLD'], wh)
def test_tax_exempt(self):
schedule_pay = 'monthly'
wh = 0.0
employee = self._createEmployee()
contract = self._createContract(employee,
salary,
struct_id=self.ref(
'l10n_us_ny_hr_payroll.hr_payroll_salary_structure_us_ny_employee'),
schedule_pay=schedule_pay)
contract.ny_it2104_filing_status = 'exempt'
self.assertPayrollEqual(cats['NY_WITHHOLD'], wh)