Merge lp:~openerp-dev/openerp-india/payroll-india-l10n_in_hr_payroll-improvements-kbh into lp:~openerp-dev/openerp-india/payroll-india

Proposed by Khushboo Bhatt(openerp)
Status: Merged
Merge reported by: Mustufa Rangwala (Open ERP)
Merged at revision: not available
Proposed branch: lp:~openerp-dev/openerp-india/payroll-india-l10n_in_hr_payroll-improvements-kbh
Merge into: lp:~openerp-dev/openerp-india/payroll-india
Diff against target: 166 lines (+33/-8)
3 files modified
l10n_in_hr_payroll/data/hr.salary.rule.csv (+2/-2)
l10n_in_hr_payroll/data/l10n_in_hr_payroll_data.xml (+29/-4)
l10n_in_hr_payroll/l10n_in_hr_payroll.py (+2/-2)
To merge this branch: bzr merge lp:~openerp-dev/openerp-india/payroll-india-l10n_in_hr_payroll-improvements-kbh
Reviewer Review Type Date Requested Status
OpenERP R&D Team Pending
Review via email: mp+121844@code.launchpad.net

Description of the change

Hello,

  l10n_in_hr_payroll:

 I have done following changes.
 - salary rules changed as per specification.
 - description added in salary rules.
 - help added on fields of contracts.
 - rules based on employer/company are made invisible in payslips.

Thanks,
KBH.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'l10n_in_hr_payroll/data/hr.salary.rule.csv'
--- l10n_in_hr_payroll/data/hr.salary.rule.csv 2012-08-21 13:20:23 +0000
+++ l10n_in_hr_payroll/data/hr.salary.rule.csv 2012-08-29 12:37:21 +0000
@@ -1,5 +1,5 @@
1"id","amount_select","condition_range_min","condition_range_max","amount_percentage","amount_fix","name","category_id","sequence","code","parent_rule_id/id","condition_select","condition_range","amount_percentage_base"1"id","amount_select","condition_range_min","condition_range_max","amount_percentage","amount_fix","name","category_id","sequence","code","parent_rule_id/id","condition_select","condition_range","amount_percentage_base"
21,"fix",1,1,,1200,"Education Allowance For One Child","Allowance",23,"CHEAONE","hr_payroll_rule_child1","range","employee.children",21,"fix",1,1,,100,"Education Allowance For One Child","Allowance",23,"CHEAONE","hr_payroll_rule_child1","range","employee.children",
32,"fix",2,10,,2400,"Education Allowance For Two Child","Allowance",24,"CHEATWO","hr_payroll_rule_child1","range","employee.children",32,"fix",2,10,,200,"Education Allowance For Two Child","Allowance",24,"CHEATWO","hr_payroll_rule_child1","range","employee.children",
43,"fix",1,1,,300,"Child Hostel Allowance For One Child","Allowance",26,"CHOONE","hr_payroll_rule_child2","range","employee.children",43,"fix",1,1,,300,"Child Hostel Allowance For One Child","Allowance",26,"CHOONE","hr_payroll_rule_child2","range","employee.children",
54,"fix",2,10,,600,"Child Hostel Allowance For Two Child","Allowance",27,"CHOTWO","hr_payroll_rule_child2","range","employee.children",54,"fix",2,10,,600,"Child Hostel Allowance For Two Child","Allowance",27,"CHOTWO","hr_payroll_rule_child2","range","employee.children",
66
=== modified file 'l10n_in_hr_payroll/data/l10n_in_hr_payroll_data.xml'
--- l10n_in_hr_payroll/data/l10n_in_hr_payroll_data.xml 2012-08-27 05:25:57 +0000
+++ l10n_in_hr_payroll/data/l10n_in_hr_payroll_data.xml 2012-08-29 12:37:21 +0000
@@ -64,6 +64,7 @@
64 <field name="amount_percentage_base">contract.wage</field>64 <field name="amount_percentage_base">contract.wage</field>
65 <field name="amount_percentage" eval="50"/>65 <field name="amount_percentage" eval="50"/>
66 <field name="sequence" eval="13"/>66 <field name="sequence" eval="13"/>
67 <field name="note">Dearness allowance (D.A.) is part of a person's salary. It is calculated as a percent of the basic salary. This amount is then added to the basic salary along with house rent allowance to get the total salary. Or you can say that The Dearness Allowance is a part of the total compensation a person receives for having performed his or her job.</field>
67 </record>68 </record>
6869
69 <record id="hr_salary_rule_houserentallowancemetro_nonmetro" model="hr.salary.rule">70 <record id="hr_salary_rule_houserentallowancemetro_nonmetro" model="hr.salary.rule">
@@ -71,9 +72,10 @@
71 <field name="amount_select">code</field>72 <field name="amount_select">code</field>
72 <field name="amount_python_compute">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)</field>73 <field name="amount_python_compute">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)</field>
73 <field name="category_id" ref="hr_payroll.ALW"/>74 <field name="category_id" ref="hr_payroll.ALW"/>
74 <field name="name">House Rent Allowance for metro and nonmetro city</field>75 <field name="name">House Rent Allowance</field>
75 <field name="register_id" ref="hr_houserent_allowance_register"/>76 <field name="register_id" ref="hr_houserent_allowance_register"/>
76 <field name="sequence" eval="51"/>77 <field name="sequence" eval="51"/>
78 <field name="note">HRA is an allowance given by the employer to the employee for taking care of his rental or accommodation expenses.</field>
77 </record>79 </record>
7880
79 <record id="hr_salary_trans_allownce" model="hr.salary.rule">81 <record id="hr_salary_trans_allownce" model="hr.salary.rule">
@@ -83,6 +85,7 @@
83 <field name="amount_select">fix</field>85 <field name="amount_select">fix</field>
84 <field eval="800.0" name="amount_fix"/>86 <field eval="800.0" name="amount_fix"/>
85 <field name="sequence" eval="14"/>87 <field name="sequence" eval="14"/>
88 <field name="note">A conveyance allowance refers to an amount of money reimbursed to someone for the operation of a vehicle or the riding of a vehicle. The allowance is typically a designated amount or percentage of total transportation expenses that is referenced in a country's tax laws or code. Organizations and private or public businesses may also offer a conveyance allowance in addition to reimbursing employees or members for transportation expenses. In this instance, the conveyance allowance may identify an unusual transport occurrence that may not be covered by a designated travel expense report such as travel to a specific job site that requires a daily bus or taxi ride.</field>
86 </record>89 </record>
8790
88 <record id="hr_salary_rule_special" model="hr.salary.rule">91 <record id="hr_salary_rule_special" model="hr.salary.rule">
@@ -127,6 +130,7 @@
127 <field name="sequence" eval="21"/>130 <field name="sequence" eval="21"/>
128 <field name="amount_select">code</field>131 <field name="amount_select">code</field>
129 <field name="amount_python_compute">result = payslip.company_id.dearness_allowance and ((contract.wage + DA) * 0.10) or (contract.wage * 0.10)</field>132 <field name="amount_python_compute">result = payslip.company_id.dearness_allowance and ((contract.wage + DA) * 0.10) or (contract.wage * 0.10)</field>
133 <field name="note">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.</field>
130 </record>134 </record>
131135
132 <record id="hr_payroll_rule_metrocity" model="hr.salary.rule">136 <record id="hr_payroll_rule_metrocity" model="hr.salary.rule">
@@ -208,13 +212,22 @@
208 <field name="note">This would be fully taxable based on Bonus.</field>212 <field name="note">This would be fully taxable based on Bonus.</field>
209 </record>213 </record>
210214
215 <record id="hr_salary_rule_medical_allow" model="hr.salary.rule">
216 <field name="code">MEDA</field>
217 <field name="name">Medical Allowance</field>
218 <field name="category_id" ref="hr_payroll.ALW"/>
219 <field name="amount_select">fix</field>
220 <field eval="1250.0" name="amount_fix"/>
221 <field name="sequence" eval="43"/>
222 <field name="note">This component is on-taxable up to 15000 per year (or Rs 1250 per month) on producing medical bills.</field>
223 </record>
211224
212 <record id="hr_salary_rule_medical" model="hr.salary.rule">225 <record id="hr_salary_rule_medical" model="hr.salary.rule">
213 <field name="code">MEDA</field>226 <field name="code">MEDA</field>
214 <field name="name">Medical Reimbursement</field>227 <field name="name">Medical Reimbursement</field>
215 <field name="category_id" ref="hr_payroll.ALW"/>228 <field name="category_id" ref="hr_payroll.ALW"/>
216 <field name="amount_select">fix</field>229 <field name="amount_select">code</field>
217 <field eval="1250.0" name="amount_fix"/>230 <field name="amount_python_compute">result = inputs.MR.amount</field>
218 <field name="sequence" eval="32"/>231 <field name="sequence" eval="32"/>
219 <field name="note">This component is on-taxable up to 15000 per year (or Rs 1250 per month) on producing medical bills.</field>232 <field name="note">This component is on-taxable up to 15000 per year (or Rs 1250 per month) on producing medical bills.</field>
220 </record>233 </record>
@@ -225,7 +238,7 @@
225 <field name="quantity">worked_days.WORK100.number_of_days</field>238 <field name="quantity">worked_days.WORK100.number_of_days</field>
226 <field name="code">FC</field>239 <field name="code">FC</field>
227 <field name="category_id" ref="hr_payroll.ALW"/>240 <field name="category_id" ref="hr_payroll.ALW"/>
228 <field name="name">Food Coupons Allowance</field>241 <field name="name">Food Allowance</field>
229 <field name="register_id" ref="hr_food_coupen_register"/>242 <field name="register_id" ref="hr_food_coupen_register"/>
230 <field name="sequence" eval="33"/>243 <field name="sequence" eval="33"/>
231 </record>244 </record>
@@ -338,6 +351,7 @@
338 <field name="amount_python_compute">result = -200 if contract.wage &gt;= 12000 else -150 if ((contract.wage &gt;= 9000) and (contract.wage &lt;= 11999)) else -80 if ((contract.wage &gt;= 6000) and (contract.wage &lt;= 8999)) else -20 if ((contract.wage &gt;= 3000) and (contract.wage &lt;= 5999)) else -0</field>351 <field name="amount_python_compute">result = -200 if contract.wage &gt;= 12000 else -150 if ((contract.wage &gt;= 9000) and (contract.wage &lt;= 11999)) else -80 if ((contract.wage &gt;= 6000) and (contract.wage &lt;= 8999)) else -20 if ((contract.wage &gt;= 3000) and (contract.wage &lt;= 5999)) else -0</field>
339 <field name="register_id" ref="hr_professional_tax_deduction_register"/>352 <field name="register_id" ref="hr_professional_tax_deduction_register"/>
340 <field eval="145" name="sequence"/>353 <field eval="145" name="sequence"/>
354 <field name="note">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.</field>
341 </record>355 </record>
342356
343 <record id="hr_payslip_rule_epf" model="hr.salary.rule">357 <record id="hr_payslip_rule_epf" model="hr.salary.rule">
@@ -384,6 +398,7 @@
384 <field eval="-1500.0" name="amount_fix"/>398 <field eval="-1500.0" name="amount_fix"/>
385 <field name="register_id" ref="hr_company_transport_register"/>399 <field name="register_id" ref="hr_company_transport_register"/>
386 <field name="sequence" eval="165"/>400 <field name="sequence" eval="165"/>
401 <field name="appears_on_payslip" eval="False"/>
387 <field name="note">Company provided transport amount is based on company.</field>402 <field name="note">Company provided transport amount is based on company.</field>
388 </record>403 </record>
389404
@@ -417,6 +432,7 @@
417 <field eval="-6.0" name="amount_fix"/>432 <field eval="-6.0" name="amount_fix"/>
418 <field name="sequence" eval="171"/>433 <field name="sequence" eval="171"/>
419 <field name="register_id" ref="hr_labour_Welfare_fund_register"/>434 <field name="register_id" ref="hr_labour_Welfare_fund_register"/>
435 <field name="appears_on_payslip" eval="False"/>
420 <field name="note">The LWF is applicable to all the members of the organisation except the Management staff (Staffs having authority to sign on the cheque/official documents on behalf of the organisation). for e.x. Employee Contribution is Rs. 3.00 and Employer contribution Rs. 6.00 Total Rs 9.00 and deposited to the LWF office.It is half yearly contribution (June and December).</field>436 <field name="note">The LWF is applicable to all the members of the organisation except the Management staff (Staffs having authority to sign on the cheque/official documents on behalf of the organisation). for e.x. Employee Contribution is Rs. 3.00 and Employer contribution Rs. 6.00 Total Rs 9.00 and deposited to the LWF office.It is half yearly contribution (June and December).</field>
421 </record>437 </record>
422438
@@ -451,6 +467,7 @@
451 <field name="amount_select">code</field>467 <field name="amount_select">code</field>
452 <field name="amount_python_compute">result = - (contract.medical_insurance)</field>468 <field name="amount_python_compute">result = - (contract.medical_insurance)</field>
453 <field eval="-50.0" name="amount_fix"/>469 <field eval="-50.0" name="amount_fix"/>
470 <field name="appears_on_payslip" eval="False"/>
454 <field name="register_id" ref="hr_medical_insurance_register"/>471 <field name="register_id" ref="hr_medical_insurance_register"/>
455 <field name="sequence" eval="185"/>472 <field name="sequence" eval="185"/>
456 </record>473 </record>
@@ -461,6 +478,7 @@
461 <field name="category_id" ref="hr_payroll.DED"/>478 <field name="category_id" ref="hr_payroll.DED"/>
462 <field name="amount_select">fix</field>479 <field name="amount_select">fix</field>
463 <field eval="-200.0" name="amount_fix"/>480 <field eval="-200.0" name="amount_fix"/>
481 <field name="appears_on_payslip" eval="False"/>
464 <field name="register_id" ref="hr_other_deduction_register"/>482 <field name="register_id" ref="hr_other_deduction_register"/>
465 <field name="sequence" eval="187"/>483 <field name="sequence" eval="187"/>
466 </record>484 </record>
@@ -473,6 +491,7 @@
473 <field name="amount_python_compute">result = payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.10) or - (contract.wage * 0.10)</field>491 <field name="amount_python_compute">result = payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.10) or - (contract.wage * 0.10)</field>
474 <field name="sequence" eval="190"/>492 <field name="sequence" eval="190"/>
475 <field name="register_id" ref="hr_nps_contribution_register"/>493 <field name="register_id" ref="hr_nps_contribution_register"/>
494 <field name="appears_on_payslip" eval="False"/>
476 <field name= "note">Any amount contributed by your employer to your NPS account is treated as part of your salary and is included in your income but you can claim deduction under Section 80C for this too.thus, effectively making it exempt from tax within the limit of 10% of your basic salary. This is very useful and tax efficient for you particularly if you fall in the maximum tax.</field>495 <field name= "note">Any amount contributed by your employer to your NPS account is treated as part of your salary and is included in your income but you can claim deduction under Section 80C for this too.thus, effectively making it exempt from tax within the limit of 10% of your basic salary. This is very useful and tax efficient for you particularly if you fall in the maximum tax.</field>
477 </record>496 </record>
478497
@@ -484,6 +503,7 @@
484 <field name="amount_python_compute">result = payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.12) or - (contract.wage * 0.12)</field>503 <field name="amount_python_compute">result = payslip.company_id.dearness_allowance and - ((contract.wage + DA) * 0.12) or - (contract.wage * 0.12)</field>
485 <field name="sequence" eval="195"/>504 <field name="sequence" eval="195"/>
486 <field name="register_id" ref="hr_register_provident_fund"/>505 <field name="register_id" ref="hr_register_provident_fund"/>
506 <field name="appears_on_payslip" eval="False"/>
487 <field name="note">Both the employees and employer contribute to the fund at the rate of 12% of the basic wages, dearness allowance and retaining allowance, if any, payable to employees per month.</field>507 <field name="note">Both the employees and employer contribute to the fund at the rate of 12% of the basic wages, dearness allowance and retaining allowance, if any, payable to employees per month.</field>
488 </record>508 </record>
489509
@@ -542,5 +562,10 @@
542 <field name="name">Leave Availed</field>562 <field name="name">Leave Availed</field>
543 <field name="input_id" ref="hr_payslip_rule_dla"/>563 <field name="input_id" ref="hr_payslip_rule_dla"/>
544 </record>564 </record>
565 <record id="hr_rule_input_medical" model="hr.rule.input">
566 <field name="code">MR</field>
567 <field name="name">Medical Reimbursement</field>
568 <field name="input_id" ref="hr_salary_rule_medical"/>
569 </record>
545 </data>570 </data>
546</openerp>571</openerp>
547572
=== modified file 'l10n_in_hr_payroll/l10n_in_hr_payroll.py'
--- l10n_in_hr_payroll/l10n_in_hr_payroll.py 2012-08-27 05:34:15 +0000
+++ l10n_in_hr_payroll/l10n_in_hr_payroll.py 2012-08-29 12:37:21 +0000
@@ -44,8 +44,8 @@
44 'tds': fields.float('TDS', digits_compute=dp.get_precision('Payroll'), help="Amount for Tax Deduction at Source"),44 'tds': fields.float('TDS', digits_compute=dp.get_precision('Payroll'), help="Amount for Tax Deduction at Source"),
45 'driver_salay': fields.boolean('Driver Salary', help="Check this box if you provide allowance for driver"),45 'driver_salay': fields.boolean('Driver Salary', help="Check this box if you provide allowance for driver"),
46 'medical_insurance': fields.float('Medical Insurance', digits_compute=dp.get_precision('Payroll'), help="Deduction towards company provided medical insurance"),46 'medical_insurance': fields.float('Medical Insurance', digits_compute=dp.get_precision('Payroll'), help="Deduction towards company provided medical insurance"),
47 'voluntary_provident_fund': fields.float('Voluntary Provident Fund (%)', digits_compute=dp.get_precision('Payroll'), help="VPF computed as percentage(%)"),47 'voluntary_provident_fund': fields.float('Voluntary Provident Fund (%)', digits_compute=dp.get_precision('Payroll'), help="VPF is a safe option wherein you can contribute more than the PF ceiling of 12% that has been mandated by the government and VPF computed as percentage(%)"),
48 'house_rent_allowance_metro_nonmetro': fields.float('House Rent Allowance (%)', digits_compute=dp.get_precision('Payroll'), help="HRA computed as percentage(%)"),48 'house_rent_allowance_metro_nonmetro': fields.float('House Rent Allowance (%)', digits_compute=dp.get_precision('Payroll'), help="HRA is an allowance given by the employer to the employee for taking care of his rental or accommodation expenses for metro city it is 50 % and for non metro 40%.HRA computed as percentage(%)"),
49 'supplementary_allowance': fields.float('Supplementary Allowance', digits_compute=dp.get_precision('Payroll')),49 'supplementary_allowance': fields.float('Supplementary Allowance', digits_compute=dp.get_precision('Payroll')),
50 }50 }
5151

Subscribers

People subscribed via source and target branches