From 150bcfff8259d331e4f7b1bac830fb57867fa3af Mon Sep 17 00:00:00 2001 From: Rajeesh K Nambiar Date: Thu, 26 Jan 2017 13:33:16 +0530 Subject: [PATCH] [FIX] l10n_in_hr_payroll: correct evaluation of rule The variable DA does not exists in evaluation context. categories is a browseable object Closes #15222 --- .../data/l10n_in_hr_payroll_data.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/addons/l10n_in_hr_payroll/data/l10n_in_hr_payroll_data.xml b/addons/l10n_in_hr_payroll/data/l10n_in_hr_payroll_data.xml index 6664d080bff..17ec10ad01d 100644 --- a/addons/l10n_in_hr_payroll/data/l10n_in_hr_payroll_data.xml +++ b/addons/l10n_in_hr_payroll/data/l10n_in_hr_payroll_data.xml @@ -70,7 +70,7 @@ HRAMN code result = (payslip.company_id.dearness_allowance and -((contract.wage + DA) * contract.house_rent_allowance_metro_nonmetro / 100) +((contract.wage + categories.DA) * contract.house_rent_allowance_metro_nonmetro / 100) or (contract.wage * contract.house_rent_allowance_metro_nonmetro / 100)) House Rent Allowance @@ -130,7 +130,7 @@ or (contract.wage * contract.house_rent_allowance_metro_nonmetro / 100)) none code - result = (payslip.company_id.dearness_allowance and ((contract.wage + DA) * 0.10) + result = (payslip.company_id.dearness_allowance and ((contract.wage + categories.DA) * 0.10) or (contract.wage * 0.10)) This allowance is paid to Employees who are posted in big cities. The purpose is to compensate the high cost of living in cities like Mumbai, Delhi, etc. However it is Fully Taxable. @@ -365,7 +365,7 @@ else -0) Employee's PF Contribution code - result = (payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.12) + result = (payslip.company_id.dearness_allowance and - ((contract.wage + categories.DA) * 0.12) or - (contract.wage * 0.12)) Employer contribution does not become part of employee’s income and hence income tax is not payable on this part. @@ -377,7 +377,7 @@ or - (contract.wage * 0.12)) Employee's NPS Contribution code - result = (payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.10) + result = (payslip.company_id.dearness_allowance and - ((contract.wage + categories.DA) * 0.10) or - (contract.wage * 0.10)) @@ -392,7 +392,7 @@ or - (contract.wage * 0.10)) result = bool(contract.voluntary_provident_fund) code result = (payslip.company_id.dearness_allowance and -- ((contract.wage + DA) * contract.voluntary_provident_fund / 100) +- ((contract.wage + categories.DA) * contract.voluntary_provident_fund / 100) or - (contract.wage * contract.voluntary_provident_fund / 100)) @@ -498,7 +498,7 @@ or - (contract.wage * contract.voluntary_provident_fund / 100)) Employer's NPS Contribution code - result = (payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.10) + result = (payslip.company_id.dearness_allowance and - ((contract.wage + categories.DA) * 0.10) or - (contract.wage * 0.10)) @@ -511,7 +511,7 @@ or - (contract.wage * 0.10)) Employer's PF Contribution code - result = (payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.12) + result = (payslip.company_id.dearness_allowance and - ((contract.wage + categories.DA) * 0.12) or - (contract.wage * 0.12))