FIX Mississippi and Montana Withholding sign.

This commit is contained in:
Jared Kipe
2019-02-13 09:54:56 -08:00
parent 16fe620f5a
commit ccc3ba68b4
4 changed files with 8 additions and 6 deletions

View File

@@ -116,6 +116,7 @@ else:
result = round(TAX / PP)
result += additional
result = -result
</field>
<field name="register_id" ref="contrib_register_msdor_withhold"/>
</record>

View File

@@ -33,7 +33,7 @@ class TestUsMsPayslip(TestUsPayslip):
self.assertPayrollEqual(TAX, 570.0)
ms_withhold = round(TAX / 24) # Semi-Monthly
self.assertPayrollEqual(cats['EE_US_MS_INC_WITHHOLD'], ms_withhold)
self.assertPayrollEqual(cats['EE_US_MS_INC_WITHHOLD'], -ms_withhold)
def test_2019_taxes_one_exempt(self):
salary = 1250.0
@@ -83,4 +83,4 @@ class TestUsMsPayslip(TestUsPayslip):
self.assertPayrollEqual(TAX, 570.0)
ms_withhold = round(TAX / 24) # Semi-Monthly
self.assertPayrollEqual(cats['EE_US_MS_INC_WITHHOLD'], ms_withhold + additional)
self.assertPayrollEqual(cats['EE_US_MS_INC_WITHHOLD'], -ms_withhold + -additional)

View File

@@ -118,6 +118,7 @@ if year == 2019 or True:
break
result += additional
result = -result
</field>
<field name="register_id" ref="contrib_register_mtdor_withhold"/>
</record>

View File

@@ -29,7 +29,7 @@ class TestUsMtPayslip(TestUsPayslip):
mt_withhold = round(0 + (0.018 * (mt_taxable_income - 0)))
self.assertPayrollEqual(mt_taxable_income, 155.0)
self.assertPayrollEqual(mt_withhold, 3.0)
self.assertPayrollEqual(cats['EE_US_MT_INC_WITHHOLD'], mt_withhold)
self.assertPayrollEqual(cats['EE_US_MT_INC_WITHHOLD'], -mt_withhold)
def test_2019_taxes_two(self):
# Payroll Period Bi-Weekly example
@@ -57,7 +57,7 @@ class TestUsMtPayslip(TestUsPayslip):
mt_withhold = round(18 + (0.06 * (mt_taxable_income - 577)))
self.assertPayrollEqual(mt_taxable_income, 2804.0)
self.assertPayrollEqual(mt_withhold, 152.0)
self.assertPayrollEqual(cats['EE_US_MT_INC_WITHHOLD'], mt_withhold)
self.assertPayrollEqual(cats['EE_US_MT_INC_WITHHOLD'], -mt_withhold)
def test_2019_taxes_three(self):
# Payroll Period Weekly example
@@ -83,7 +83,7 @@ class TestUsMtPayslip(TestUsPayslip):
mt_withhold = round(0 + (0.018 * (mt_taxable_income - 0)))
self.assertPayrollEqual(mt_taxable_income, 98.0)
self.assertPayrollEqual(mt_withhold, 2.0)
self.assertPayrollEqual(cats['EE_US_MT_INC_WITHHOLD'], mt_withhold)
self.assertPayrollEqual(cats['EE_US_MT_INC_WITHHOLD'], -mt_withhold)
def test_2019_taxes_three_exempt(self):
# Payroll Period Weekly example
@@ -126,4 +126,4 @@ class TestUsMtPayslip(TestUsPayslip):
mt_withhold = round(0 + (0.018 * (mt_taxable_income - 0)))
self.assertPayrollEqual(mt_taxable_income, 98.0)
self.assertPayrollEqual(mt_withhold, 2.0)
self.assertPayrollEqual(cats['EE_US_MT_INC_WITHHOLD'], mt_withhold + mt_mw4_additional_withholding)
self.assertPayrollEqual(cats['EE_US_MT_INC_WITHHOLD'], -mt_withhold + -mt_mw4_additional_withholding)