From 04c2ebb043812438c96396bef55339344a75f686 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Sun, 9 Dec 2018 11:51:01 -0800 Subject: [PATCH] Refactor to mitigate the fact that eligible 401(k) contributions reduce taxable wage (gross) but not FICA/FUTA etc. This refactor bases all/most 'wage' categories off of BASIC instead of GROSS to allow all 'Income Tax' rules to continue to be based on GROSS. --- l10n_us_pa_hr_payroll/data/rules_2018.xml | 4 ++-- l10n_us_pa_hr_payroll/tests/test_us_pa_payslip_2018.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/l10n_us_pa_hr_payroll/data/rules_2018.xml b/l10n_us_pa_hr_payroll/data/rules_2018.xml index c8dd9e46..f35d4319 100755 --- a/l10n_us_pa_hr_payroll/data/rules_2018.xml +++ b/l10n_us_pa_hr_payroll/data/rules_2018.xml @@ -18,10 +18,10 @@ ytd += contract.external_wages remaining = 10000.0 - ytd if remaining <= 0.0: result = 0 -elif remaining < categories.GROSS: +elif remaining < categories.BASIC: result = remaining else: - result = categories.GROSS + result = categories.BASIC diff --git a/l10n_us_pa_hr_payroll/tests/test_us_pa_payslip_2018.py b/l10n_us_pa_hr_payroll/tests/test_us_pa_payslip_2018.py index 025caf5a..c047bb38 100755 --- a/l10n_us_pa_hr_payroll/tests/test_us_pa_payslip_2018.py +++ b/l10n_us_pa_hr_payroll/tests/test_us_pa_payslip_2018.py @@ -14,7 +14,7 @@ class TestUsPAPayslip(TestUsPayslip): wh = -127.92 employee = self._createEmployee() - employee.company_id.pa_unemp_employee_rate_2018 = 0.06~ + employee.company_id.pa_unemp_employee_rate_2018 = 0.06 employee.company_id.pa_unemp_company_rate_2018 = 3.6785 employee.company_id.pa_withhold_rate_2018 = 3.07