mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
FIX Mississippi and Montana Withholding sign.
This commit is contained in:
@@ -116,6 +116,7 @@ else:
|
|||||||
result = round(TAX / PP)
|
result = round(TAX / PP)
|
||||||
|
|
||||||
result += additional
|
result += additional
|
||||||
|
result = -result
|
||||||
</field>
|
</field>
|
||||||
<field name="register_id" ref="contrib_register_msdor_withhold"/>
|
<field name="register_id" ref="contrib_register_msdor_withhold"/>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class TestUsMsPayslip(TestUsPayslip):
|
|||||||
self.assertPayrollEqual(TAX, 570.0)
|
self.assertPayrollEqual(TAX, 570.0)
|
||||||
|
|
||||||
ms_withhold = round(TAX / 24) # Semi-Monthly
|
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):
|
def test_2019_taxes_one_exempt(self):
|
||||||
salary = 1250.0
|
salary = 1250.0
|
||||||
@@ -83,4 +83,4 @@ class TestUsMsPayslip(TestUsPayslip):
|
|||||||
self.assertPayrollEqual(TAX, 570.0)
|
self.assertPayrollEqual(TAX, 570.0)
|
||||||
|
|
||||||
ms_withhold = round(TAX / 24) # Semi-Monthly
|
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)
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ if year == 2019 or True:
|
|||||||
break
|
break
|
||||||
|
|
||||||
result += additional
|
result += additional
|
||||||
|
result = -result
|
||||||
</field>
|
</field>
|
||||||
<field name="register_id" ref="contrib_register_mtdor_withhold"/>
|
<field name="register_id" ref="contrib_register_mtdor_withhold"/>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ class TestUsMtPayslip(TestUsPayslip):
|
|||||||
mt_withhold = round(0 + (0.018 * (mt_taxable_income - 0)))
|
mt_withhold = round(0 + (0.018 * (mt_taxable_income - 0)))
|
||||||
self.assertPayrollEqual(mt_taxable_income, 155.0)
|
self.assertPayrollEqual(mt_taxable_income, 155.0)
|
||||||
self.assertPayrollEqual(mt_withhold, 3.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):
|
def test_2019_taxes_two(self):
|
||||||
# Payroll Period Bi-Weekly example
|
# Payroll Period Bi-Weekly example
|
||||||
@@ -57,7 +57,7 @@ class TestUsMtPayslip(TestUsPayslip):
|
|||||||
mt_withhold = round(18 + (0.06 * (mt_taxable_income - 577)))
|
mt_withhold = round(18 + (0.06 * (mt_taxable_income - 577)))
|
||||||
self.assertPayrollEqual(mt_taxable_income, 2804.0)
|
self.assertPayrollEqual(mt_taxable_income, 2804.0)
|
||||||
self.assertPayrollEqual(mt_withhold, 152.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):
|
def test_2019_taxes_three(self):
|
||||||
# Payroll Period Weekly example
|
# Payroll Period Weekly example
|
||||||
@@ -83,7 +83,7 @@ class TestUsMtPayslip(TestUsPayslip):
|
|||||||
mt_withhold = round(0 + (0.018 * (mt_taxable_income - 0)))
|
mt_withhold = round(0 + (0.018 * (mt_taxable_income - 0)))
|
||||||
self.assertPayrollEqual(mt_taxable_income, 98.0)
|
self.assertPayrollEqual(mt_taxable_income, 98.0)
|
||||||
self.assertPayrollEqual(mt_withhold, 2.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):
|
def test_2019_taxes_three_exempt(self):
|
||||||
# Payroll Period Weekly example
|
# Payroll Period Weekly example
|
||||||
@@ -126,4 +126,4 @@ class TestUsMtPayslip(TestUsPayslip):
|
|||||||
mt_withhold = round(0 + (0.018 * (mt_taxable_income - 0)))
|
mt_withhold = round(0 + (0.018 * (mt_taxable_income - 0)))
|
||||||
self.assertPayrollEqual(mt_taxable_income, 98.0)
|
self.assertPayrollEqual(mt_taxable_income, 98.0)
|
||||||
self.assertPayrollEqual(mt_withhold, 2.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)
|
||||||
|
|||||||
Reference in New Issue
Block a user