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 a6bab99aa7
commit 9b7fcf315b

View File

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