From 8d94232e0a0f7271705d86b9e00f5446b6b1c8b0 Mon Sep 17 00:00:00 2001 From: "Meera Trambadia (OpenERP)" Date: Fri, 13 Jul 2012 17:25:44 +0530 Subject: [PATCH] [IMP] l10n_in_hr_payroll: added field on hr.contract object and modified salary rules of 'HRAM' and 'HRANM' bzr revid: mtr@tinyerp.com-20120713115544-bc9sdi7so47j65t6 --- .../data/l10n_in_hr_payroll_data.xml | 16 ++++++++++------ addons/l10n_in_hr_payroll/l10n_in_hr_payroll.py | 6 +++++- .../l10n_in_hr_payroll_view.xml | 7 ++++--- 3 files changed, 19 insertions(+), 10 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 8816ee24412..780829aec4c 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 @@ -20,6 +20,8 @@ House Rent Allowance for metro city + python + result = (contract.city_type=='metro') Rent receipts can be shown for taking tax benefit for living in a rented house. Income tax exemption for HRA will be least of following: 1. The actual amount of HRA received as a part of salary. @@ -35,6 +37,8 @@ Income tax exemption for HRA will be least of following: House Rent Allowance for non metro city + python + result = (contract.city_type=='non-metro') Rent receipts can be shown for taking tax benefit for living in a rented house. Income tax exemption for HRA will be least of following: 1. The actual amount of HRA received as a part of salary. @@ -121,7 +125,7 @@ Income tax exemption for HRA will be least of following: fix - Generally arrears are fully taxable, but employee may claim exemption u/s 89(1). + Generally arrears are fully taxable, but employee may claim exemption u/s 89(1). One would need to compute income tax on the arrears if it would have been received in actual year. Now difference of income tax between payment year and actual year would be allowed for deduction. @@ -134,8 +138,8 @@ Now difference of income tax between payment year and actual year would be allow code result = payslip.company_id.dearness_allowance and ((contract.wage + DA) * 15 * employee.number_of_year / worked_days.WORK100.number_of_days) or (contract.wage * 15 * employee.number_of_year / worked_days.WORK100.number_of_days) - Covered under the Payment of Gratuity Act, 1971: -(Last drawn monthly basic salary + dearness allowance)/26 x 15 days x + Covered under the Payment of Gratuity Act, 1971: +(Last drawn monthly basic salary + dearness allowance)/26 x 15 days x number of years of service (date of joining – date of retirement/leaving job) @@ -328,12 +332,12 @@ number of years of service (date of joining – date of retirement/leaving job)< CPT Deduction for Company Provided Transport - none + none fix - + fix @@ -367,7 +371,7 @@ number of years of service (date of joining – date of retirement/leaving job)< DLA Deduction Towards Leave Availed - none + none fix diff --git a/addons/l10n_in_hr_payroll/l10n_in_hr_payroll.py b/addons/l10n_in_hr_payroll/l10n_in_hr_payroll.py index 3f00ecf9c63..302611d9c92 100644 --- a/addons/l10n_in_hr_payroll/l10n_in_hr_payroll.py +++ b/addons/l10n_in_hr_payroll/l10n_in_hr_payroll.py @@ -44,6 +44,10 @@ class hr_contract(osv.osv): 'driver_salay': fields.boolean('Driver Salary', help=" Allowance for company provided driver"), 'medical_insurance': fields.float('Medical Insurance', digits_compute=dp.get_precision('Payroll'), help="Deduction towards company provided medical insurance"), 'voluntary_provident_fund': fields.float('Voluntary Provident Fund', digits_compute=dp.get_precision('Payroll'), help="VPF computed as percentage(%)"), + 'city_type': fields.selection([ + ('metro', 'Metro'), + ('non-metro', 'Non-Metro'), + ], 'Type of City', readonly=False), } hr_contract() @@ -244,4 +248,4 @@ class res_company(osv.osv): res_company() -# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: \ No newline at end of file +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/l10n_in_hr_payroll/l10n_in_hr_payroll_view.xml b/addons/l10n_in_hr_payroll/l10n_in_hr_payroll_view.xml index ddd6543df34..b1b98adf967 100644 --- a/addons/l10n_in_hr_payroll/l10n_in_hr_payroll_view.xml +++ b/addons/l10n_in_hr_payroll/l10n_in_hr_payroll_view.xml @@ -13,6 +13,7 @@ + @@ -24,7 +25,7 @@ - + hr.employee.form.inherit hr.employee @@ -55,7 +56,7 @@ - + hr.payroll.advice.form hr.payroll.advice @@ -140,7 +141,7 @@ - +