From fe33971bbbf161a7e7e11dc6a89afc6baaddcca3 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Sun, 10 Feb 2019 15:55:11 -0800 Subject: [PATCH] MIG `l10n_us_tx_hr_payroll` to 12.0 --- l10n_us_tx_hr_payroll/__manifest__.py | 3 +-- l10n_us_tx_hr_payroll/data/rules.xml | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/l10n_us_tx_hr_payroll/__manifest__.py b/l10n_us_tx_hr_payroll/__manifest__.py index f905ab8b..fbc60187 100755 --- a/l10n_us_tx_hr_payroll/__manifest__.py +++ b/l10n_us_tx_hr_payroll/__manifest__.py @@ -1,11 +1,10 @@ -# -*- encoding: utf-8 -*- { 'name': 'USA - Texas - Payroll', 'author': 'Hibou Corp. ', 'license': 'AGPL-3', 'category': 'Localization', 'depends': ['l10n_us_hr_payroll'], - 'version': '11.0.2019.0.0', + 'version': '12.0.2019.0.0', 'description': """ USA::Texas Payroll Rules. ========================= diff --git a/l10n_us_tx_hr_payroll/data/rules.xml b/l10n_us_tx_hr_payroll/data/rules.xml index 240ee79d..949c96d0 100755 --- a/l10n_us_tx_hr_payroll/data/rules.xml +++ b/l10n_us_tx_hr_payroll/data/rules.xml @@ -14,7 +14,7 @@ ### rate = payslip.dict.get_rate('US_TX_UNEMP') -year = int(payslip.dict.date_to[:4]) +year = payslip.dict.date_to.year ytd = payslip.sum('WAGE_US_TX_UNEMP', str(year) + '-01-01', str(year+1) + '-01-01') ytd += contract.external_wages remaining = rate.wage_limit_year - ytd