mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] l10n_us_hr_payroll: Updated NY New York 2020 rates and tests.
This commit is contained in:
@@ -89,18 +89,168 @@
|
||||
<field name="code">us_ny_sit_tax_rate</field>
|
||||
<field name="parameter_value">{
|
||||
'single': {
|
||||
'weekly': ((163, 0.0400, 0.0), (225, 0.0450, 6.54), (267, 0.0525, 9.31), (412, 0.0590, 11.54), (1551, 0.0633, 20.04), (1862, 0.0657, 92.17), (2070, 0.0758, 112.58), (3032, 0.0808, 128.38), (4142, 0.0707, 206.08), (5104, 0.0856, 284.60), (20722, 0.0735, 366.90), (21684, 0.5208, 1514.85), ('inf', 0.0962, 2015.62)),
|
||||
'bi-weekly': ((327, 0.0400, 0.0), (450, 0.0450, 13.08), (535, 0.0525, 18.62), (823, 0.0590, 23.08), (3102, 0.0633, 40.08), (3723, 0.0657, 184.35), (4140, 0.0758, 225.15), (6063, 0.0808, 256.77), (8285, 0.0707, 412.15), (10208, 0.0856, 569.19), (41444, 0.0735, 733.81), (43367, 0.5208, 3029.69), ('inf', 0.0962, 4021.23)),
|
||||
'semi-monthly': ((354, 0.0400, 0.0), (488, 0.0450, 14.17), (579, 0.0525, 20.17), (892, 0.0590, 25.00), (3360, 0.0633, 43.42), (4033, 0.0657, 199.71), (4485, 0.0758, 243.92), (6569, 0.0808, 278.17), (8975, 0.0707, 446.50), (11058, 0.0856, 616.63), (44898, 0.0735, 794.96), (46981, 0.5208, 3282.17), ('inf', 0.0962, 4367.17)),
|
||||
'monthly': ((708, 0.0400, 0.0), (975, 0.0450, 28.33), (1158, 0.0525, 40.33), (1783, 0.0590, 50.00), (6721, 0.0633, 86.83), (8067, 0.0657, 399.42), (8971, 0.0758, 487.83), (13138, 0.0808, 556.33), (17950, 0.0707, 893.00), (22117, 0.0856, 1233.25), (89796, 0.0735, 1589.92), (93963, 0.5208, 6564.33), ('inf', 0.0962, 8734.33)),
|
||||
'annually': ((8500, 0.0400, 0.0), (11700, 0.0450, 340.00), (13900, 0.0525, 484.00), (21400, 0.0590, 600.00), (80650, 0.0633, 1042.00), (96800, 0.0657, 4793.00), (107650, 0.0758, 5854.00), (157650, 0.0808, 6676.00), (215400, 0.0707, 10716.00), (265400, 0.0856, 14799.00), (1077550, 0.0735, 19079.00), (1127550, 0.5208, 78772.00), ('inf', 0.0962, 104812.00)),
|
||||
'weekly': (
|
||||
( 163, 0.0400, 0.00),
|
||||
( 225, 0.0450, 6.54),
|
||||
( 267, 0.0525, 9.31),
|
||||
( 412, 0.0590, 11.54),
|
||||
( 1551, 0.0609, 20.04),
|
||||
( 1862, 0.0641, 89.42),
|
||||
( 2070, 0.0745, 109.35),
|
||||
( 3032, 0.0795, 124.88),
|
||||
( 4142, 0.0691, 201.33),
|
||||
( 5104, 0.0925, 278.06),
|
||||
(20722, 0.0735, 367.00),
|
||||
(21684, 0.5208, 1514.94),
|
||||
('inf', 0.0962, 2015.71),
|
||||
),
|
||||
'bi-weekly': (
|
||||
( 327, 0.0400, 0.00),
|
||||
( 450, 0.0450, 13.08),
|
||||
( 535, 0.0525, 18.62),
|
||||
( 823, 0.0590, 23.08),
|
||||
( 3102, 0.0609, 40.08),
|
||||
( 3723, 0.0641, 178.85),
|
||||
( 4140, 0.0745, 218.69),
|
||||
( 6063, 0.0795, 249.77),
|
||||
( 8285, 0.0691, 402.65),
|
||||
(10208, 0.0925, 556.12),
|
||||
(41444, 0.0735, 734.00),
|
||||
(43367, 0.5208, 3029.88),
|
||||
('inf', 0.0962, 4031.42),
|
||||
),
|
||||
'semi-monthly': (
|
||||
( 354, 0.0400, 0.00),
|
||||
( 488, 0.0450, 14.17),
|
||||
( 579, 0.0525, 20.17),
|
||||
( 892, 0.0590, 25.00),
|
||||
( 3360, 0.0609, 43.42),
|
||||
( 4033, 0.0641, 193.75),
|
||||
( 4485, 0.0745, 236.92),
|
||||
( 6569, 0.0795, 270.58),
|
||||
( 8975, 0.0691, 436.21),
|
||||
(11058, 0.0925, 602.46),
|
||||
(44898, 0.0735, 795.17),
|
||||
(46981, 0.5208, 3282.38),
|
||||
('inf', 0.0962, 4367.38),
|
||||
),
|
||||
'monthly': (
|
||||
( 708, 0.0400, 0.00),
|
||||
( 975, 0.0450, 28.33),
|
||||
( 1158, 0.0525, 40.33),
|
||||
( 1783, 0.0590, 50.00),
|
||||
( 6721, 0.0609, 86.83),
|
||||
( 8067, 0.0641, 387.50),
|
||||
( 8971, 0.0745, 473.83),
|
||||
(13138, 0.0795, 541.17),
|
||||
(17950, 0.0691, 872.42),
|
||||
(22117, 0.0925, 1204.92),
|
||||
(89796, 0.0735, 1590.33),
|
||||
(93963, 0.5208, 6564.75),
|
||||
('inf', 0.0962, 8734.75),
|
||||
),
|
||||
'annually': (
|
||||
( 8500, 0.0400, 0.00),
|
||||
( 11700, 0.0450, 340.00),
|
||||
( 13900, 0.0525, 484.00),
|
||||
( 21400, 0.0590, 600.00),
|
||||
( 80650, 0.0609, 1042.00),
|
||||
( 96800, 0.0641, 4650.00),
|
||||
( 107650, 0.0745, 5686.00),
|
||||
( 157650, 0.0795, 6494.00),
|
||||
( 215400, 0.0691, 10469.00),
|
||||
( 265400, 0.0925, 14459.00),
|
||||
(1077550, 0.0735, 19084.00),
|
||||
(1127550, 0.5208, 78777.00),
|
||||
( 'inf', 0.0962, 104817.00),
|
||||
),
|
||||
},
|
||||
'married': {
|
||||
'weekly': ((163, 0.0400, 0.0), (225, 0.0450, 6.54), (267, 0.0525, 9.31), (412, 0.0590, 11.54), (1551, 0.0633, 20.04), (1862, 0.0657, 92.17), (2070, 0.0783, 112.58), (3032, 0.0833, 128.90), (4068, 0.0785, 209.00), (6215, 0.0707, 290.37), (7177, 0.0916, 442.17), (20722, 0.0735, 530.25), (41449, 0.0765, 1525.83), (42411, 0.9454, 3111.42), ('inf', 0.0962, 4020.46)),
|
||||
'bi-weekly': ((327, 0.0400, 0.0), (450, 0.0450, 13.08), (535, 0.0525, 18.62), (823, 0.0590, 23.08), (3102, 0.0633, 40.08), (3723, 0.0657, 184.35), (4140, 0.0783, 225.15), (6063, 0.0833, 257.81), (8137, 0.0785, 418.00), (12431, 0.0707, 580.73), (14354, 0.0916, 884.35), (41444, 0.0735, 1060.50), (82898, 0.0765, 3051.65), (84821, 0.9454, 6222.85), ('inf', 0.0962, 8040.92)),
|
||||
'semi-monthly': ((354, 0.0400, 0.0), (488, 0.0450, 14.17), (579, 0.0525, 20.17), (892, 0.0590, 25.00), (3360, 0.0633, 43.42), (4033, 0.0657, 199.71), (4485, 0.0783, 243.92), (6569, 0.0833, 279.29), (8815, 0.0785, 452.83), (13476, 0.0707, 629.13), (15550, 0.0916, 958.04), (44898, 0.0735, 1148.88), (89806, 0.0765, 3305.96), (91890, 0.9454, 6741.42), ('inf', 0.0962, 8711.00)),
|
||||
'monthly': ((708, 0.0400, 0.0), (975, 0.0450, 28.33), (1158, 0.0525, 40.33), (1783, 0.0590, 50.00), (6721, 0.0633, 86.83), (8067, 0.0657, 399.42), (8971, 0.0783, 487.83), (13138, 0.0833, 558.58), (17629, 0.0785, 905.67), (26933, 0.0707, 1258.25), (31100, 0.0916, 1916.08), (89796, 0.0735, 2297.75), (179613, 0.0765, 6611.92), (183779, 0.9454, 13482.83), ('inf', 0.0962, 17422.00)),
|
||||
'annually': ((8500, 0.0400, 0.0), (11700, 0.0450, 340.00), (13900, 0.0525, 484.00), (21400, 0.0590, 600.00), (80650, 0.0633, 1042.00), (96800, 0.0657, 4793.00), (107650, 0.0783, 5854.00), (157650, 0.0833, 6703.00), (211550, 0.0785, 10868.00), (323200, 0.0707, 15099.00), (373200, 0.0916, 22993.00), (1077550, 0.0735, 27573.00), (2155350, 0.0765, 79343.00), (2205350, 0.9454, 161794.00), ('inf', 0.0962, 209064.00)),
|
||||
'weekly': (
|
||||
( 163, 0.0400, 0.00),
|
||||
( 225, 0.0450, 6.54),
|
||||
( 267, 0.0525, 9.31),
|
||||
( 412, 0.0590, 11.54),
|
||||
( 1551, 0.0609, 20.04),
|
||||
( 1862, 0.0641, 89.42),
|
||||
( 2070, 0.0746, 109.35),
|
||||
( 3032, 0.0796, 124.90),
|
||||
( 4068, 0.0794, 201.44),
|
||||
( 6215, 0.0691, 283.75),
|
||||
( 7177, 0.1019, 432.12),
|
||||
(20722, 0.0735, 530.10),
|
||||
(41449, 0.0765, 1525.65),
|
||||
(42411, 0.9454, 3111.27),
|
||||
('inf', 0.0962, 4020.31),
|
||||
),
|
||||
'bi-weekly': (
|
||||
( 327, 0.0400, 0.00),
|
||||
( 450, 0.0450, 13.08),
|
||||
( 535, 0.0525, 18.62),
|
||||
( 823, 0.0590, 23.08),
|
||||
( 3102, 0.0609, 40.08),
|
||||
( 3723, 0.0641, 178.85),
|
||||
( 4140, 0.0746, 218.69),
|
||||
( 6063, 0.0796, 249.81),
|
||||
( 8137, 0.0794, 402.88),
|
||||
(12431, 0.0691, 567.50),
|
||||
(14354, 0.1019, 864.23),
|
||||
(41444, 0.0735, 1060.19),
|
||||
(82898, 0.0765, 3051.31),
|
||||
(84821, 0.9454, 6222.54),
|
||||
('inf', 0.0962, 8040.62),
|
||||
),
|
||||
'semi-monthly': (
|
||||
( 354, 0.0400, 0.00),
|
||||
( 488, 0.0450, 14.17),
|
||||
( 579, 0.0525, 20.17),
|
||||
( 892, 0.0590, 25.00),
|
||||
( 3360, 0.0609, 43.42),
|
||||
( 4033, 0.0641, 193.75),
|
||||
( 4485, 0.0746, 236.92),
|
||||
( 6569, 0.0796, 270.63),
|
||||
( 8815, 0.0794, 436.46),
|
||||
(13467, 0.0691, 614.79),
|
||||
(15550, 0.1019, 936.25),
|
||||
(44898, 0.0735, 1148.54),
|
||||
(89806, 0.0765, 3305.58),
|
||||
(91890, 0.9454, 6741.08),
|
||||
('inf', 0.0962, 8710.67),
|
||||
),
|
||||
'monthly': (
|
||||
( 708, 0.0400, 0.00),
|
||||
( 975, 0.0450, 28.33),
|
||||
( 1158, 0.0525, 40.33),
|
||||
( 1783, 0.0590, 50.00),
|
||||
( 6721, 0.0609, 86.83),
|
||||
( 8067, 0.0641, 387.50),
|
||||
( 8971, 0.0746, 473.83),
|
||||
( 13138, 0.0796, 541.25),
|
||||
( 17629, 0.0794, 872.92),
|
||||
( 26933, 0.0691, 1229.58),
|
||||
( 31100, 0.1019, 1872.50),
|
||||
( 89796, 0.0735, 2297.08),
|
||||
(179613, 0.0765, 6611.17),
|
||||
(183779, 0.9454, 13482.17),
|
||||
( 'inf', 0.0962, 17421.33),
|
||||
),
|
||||
'annually': (
|
||||
( 8500, 0.0400, 0.00),
|
||||
( 11700, 0.0450, 340.00),
|
||||
( 13900, 0.0525, 484.00),
|
||||
( 21400, 0.0590, 600.00),
|
||||
( 80650, 0.0609, 1042.00),
|
||||
( 96800, 0.0641, 4650.00),
|
||||
( 107650, 0.0746, 5686.00),
|
||||
( 157650, 0.0796, 6495.00),
|
||||
( 211550, 0.0794, 10475.00),
|
||||
( 323200, 0.0691, 14755.00),
|
||||
( 373200, 0.1019, 22470.00),
|
||||
(1077550, 0.0735, 27565.00),
|
||||
(2155350, 0.0765, 79334.00),
|
||||
(2205350, 0.9454, 161786.00),
|
||||
( 'inf', 0.0962, 209056.00),
|
||||
),
|
||||
}
|
||||
}</field>
|
||||
<field name="date_from" eval="datetime(2020, 1, 1).date()"/>
|
||||
|
||||
@@ -27,13 +27,13 @@ class TestUsNYPayslip(TestUsPayslip):
|
||||
cats = self._getCategories(payslip)
|
||||
|
||||
self._log('Computed period tax: ' + str(expected_withholding))
|
||||
self.assertPayrollEqual(cats.get('EE_US_SIT', 0.0), -expected_withholding)
|
||||
self.assertPayrollAlmostEqual(cats.get('EE_US_SIT', 0.0), -expected_withholding)
|
||||
|
||||
def test_2020_taxes_example(self):
|
||||
combined_er_rate = self.NY_UNEMP + self.NY_RSF + self.NY_MCTMT
|
||||
self._test_er_suta('NY', combined_er_rate, date(2020, 1, 1), wage_base=self.NY_UNEMP_MAX_WAGE, relaxed=True)
|
||||
self._test_sit(400.0, 'single', 0.0, 3, 'weekly', date(2020, 1, 1), 8.20)
|
||||
self._test_sit(50000.0, 'single', 0.0, 3, 'monthly', date(2020, 1, 1), 3575.63)
|
||||
self._test_sit(50000.0, 'married', 0.0, 3, 'monthly', date(2020, 1, 1), 3619.82)
|
||||
self._test_sit(50000.0, 'married', 10.0, 3, 'monthly', date(2020, 1, 1), 3629.83)
|
||||
self._test_sit(10000.0, 'single', 0.0, 3, 'monthly', date(2020, 1, 1), 554.09)
|
||||
self._test_sit(8000.0, 'married', 0.0, 5, 'monthly', date(2020, 1, 1), 400.32)
|
||||
self._test_sit(4500.0, 'married', 10.0, 3, 'semi-monthly', date(2020, 1, 1), 247.69)
|
||||
self._test_sit(50000.0, '', 0.0, 0, 'monthly', date(2020, 1, 1), 0.00)
|
||||
|
||||
Reference in New Issue
Block a user