From eb57fb150352960ccbca36388ffcc776ae034aa0 Mon Sep 17 00:00:00 2001 From: "Khushboo Bhatt (Open ERP)" Date: Thu, 30 Aug 2012 11:19:08 +0530 Subject: [PATCH] [FIX]l10n_in_hr_payroll:python code for rules bzr revid: kbh@tinyerp.com-20120830054908-7j6vydmwwfzsoned --- .../data/l10n_in_hr_payroll_data.xml | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 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 ae300ce4d91..8c6449e6336 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,9 @@ HRAMN code - result = payslip.company_id.dearness_allowance and ((contract.wage + DA) * contract.house_rent_allowance_metro_nonmetro / 100) or (contract.wage * contract.house_rent_allowance_metro_nonmetro / 100) + result = (payslip.company_id.dearness_allowance and +((contract.wage + DA) * contract.house_rent_allowance_metro_nonmetro / 100) +or (contract.wage * contract.house_rent_allowance_metro_nonmetro / 100)) House Rent Allowance @@ -129,7 +131,8 @@ none code - result = payslip.company_id.dearness_allowance and ((contract.wage + DA) * 0.10) or (contract.wage * 0.10) + result = (payslip.company_id.dearness_allowance and ((contract.wage + 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. @@ -348,7 +351,11 @@ Now difference of income tax between payment year and actual year would be allow python result = contract.wage >= 3000 code - result = -200 if contract.wage >= 12000 else -150 if ((contract.wage >= 9000) and (contract.wage <= 11999)) else -80 if ((contract.wage >= 6000) and (contract.wage <= 8999)) else -20 if ((contract.wage >= 3000) and (contract.wage <= 5999)) else -0 + result = (-200 if contract.wage >= 12000 +else -150 if ((contract.wage >= 9000) and (contract.wage <= 11999)) +else -80 if ((contract.wage >= 6000) and (contract.wage <= 8999)) +else -20 if ((contract.wage >= 3000) and (contract.wage <= 5999)) +else -0) Workers living in states that impose the professional tax must submit a payment each half-year for the right to practice a profession or trade. It applies equally to employees who work for the national or state government, and those employed by private corporations. The professional tax uses a six-month accounting system, which divides the year into two periods, beginning on April 1 and October 1. @@ -359,7 +366,8 @@ Now difference of income tax between payment year and actual year would be allow Employee's PF Contribution code - result = payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.12) or - (contract.wage * 0.12) + result = (payslip.company_id.dearness_allowance and - ((contract.wage + 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. @@ -370,7 +378,8 @@ Now difference of income tax between payment year and actual year would be allow Employee's NPS Contribution code - result = payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.10) or - (contract.wage * 0.10) + result = (payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.10) +or - (contract.wage * 0.10)) Employee can claim deduction even of employer's contribution to NPS. @@ -383,7 +392,9 @@ Now difference of income tax between payment year and actual year would be allow python result = bool(contract.voluntary_provident_fund) code - result = payslip.company_id.dearness_allowance and - ((contract.wage + DA) * contract.voluntary_provident_fund / 100) or - (contract.wage * contract.voluntary_provident_fund / 100) + result = (payslip.company_id.dearness_allowance and +- ((contract.wage + DA) * contract.voluntary_provident_fund / 100) +or - (contract.wage * contract.voluntary_provident_fund / 100)) VPF is a safe option wherein you can contribute more than the PF ceiling of 12% that has been mandated by the government.This additional amount enjoys all the benefits of PF except that the employer is not liable to contribute any extra amount apart from 12%.An added advantage is that the interest rate is equal to the interest rate of PF and he withdrawal is tax free. Please note that the maximum contribution towards VPF is 100% of your Basic.The highest rate of interest (close to 9%) makes it a very attractive saving scheme. Because of these advantages many employees chose not to close their PF account even after getting employment else where other than India.Employees also get a major tax break on their entire contribution to the fund up to a ceiling of Rs. 70,000/- @@ -488,7 +499,8 @@ Now difference of income tax between payment year and actual year would be allow Employer's NPS Contribution code - result = payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.10) or - (contract.wage * 0.10) + result = (payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.10) +or - (contract.wage * 0.10)) @@ -500,7 +512,8 @@ Now difference of income tax between payment year and actual year would be allow Employer's PF Contribution code - result = payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.12) or - (contract.wage * 0.12) + result = (payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.12) +or - (contract.wage * 0.12))