MIG l10n_us_pa_hr_payroll to 12.0

This commit is contained in:
Jared Kipe
2019-02-10 16:03:18 -08:00
parent 833297c53b
commit 1ed9435a42
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@
'license': 'AGPL-3', 'license': 'AGPL-3',
'category': 'Localization', 'category': 'Localization',
'depends': ['l10n_us_hr_payroll'], 'depends': ['l10n_us_hr_payroll'],
'version': '11.0.2019.0.0', 'version': '12.0.2019.0.0',
'description': """ 'description': """
USA::Pennsylvania Payroll Rules. USA::Pennsylvania Payroll Rules.
================================ ================================

View File

@@ -13,7 +13,7 @@
<field name="amount_select">code</field> <field name="amount_select">code</field>
<field name="amount_python_compute"> <field name="amount_python_compute">
### ###
year = int(payslip.dict.date_to[:4]) year = payslip.dict.date_to.year
rate = payslip.dict.get_rate('ER_US_PA_UNEMP') rate = payslip.dict.get_rate('ER_US_PA_UNEMP')
ytd = payslip.sum('WAGE_ER_US_PA_UNEMP', str(year) + '-01-01', str(year+1) + '-01-01') ytd = payslip.sum('WAGE_ER_US_PA_UNEMP', str(year) + '-01-01', str(year+1) + '-01-01')
ytd += contract.external_wages ytd += contract.external_wages