Skip to Content
Menu
This question has been flagged
3 Replies
13789 Views

Hello Friends, Can anybody please tell me how to do manual addition and deduction in a payslip after the payslip is generated? I can see that OpenERP allows as to add components manually in the payslip but when I click on "Compute" button after making the manual addition, it throws an error. Please help

Avatar
Discard
Best Answer

Hello  Farook,

 

Following Steps for Manual addition and deduction in payslip:

 

Step 1 : Prepare Salary Rules For Allowance & Deduction Inputs.

 

For eg : TDS

 



For eg: Travel Allowance




Step 2 : Define Salary Rules in Salary Structure



Step 3: Create Employee Payslip & insert salary rule(allowance & deduction) as per the code. Also insert amount & employee contract

into other inputs field




Step 4: After inserting other input fields, click on Compute Sheet Button in employee’s payslip with which user

can see manual inputs (like TA,TDS) from Salary Computation tab. Also Net Salary will be calculated as per salary

structure & other manual inputs.



Hope this will help you.


Thanks!

Avatar
Discard
Best Answer

Hello, can you expound on 

"result = inputs.EXT.amount and inputs.EXT"

where to put this code? I have same problem

Avatar
Discard
Best Answer
Hi Mr shah jainesh

i followed your instructions above to do Manual addition and deduction in payslip : 

my problem now is when there is no other inputs (no addition or deduction in payslip ) 

i get this error : 

Error!

Wrong python code defined for salary rule "rule name"

i tried in the salary rule this code : 

result = inputs.EXT.amount or false  


and this code also : 

try:
result = inputs.EXT.amount or false   

except : 
result = 0 

but the  error message is exist when i compute payslip for employee 


please help me 

thank you very much 
Avatar
Discard

Please try using

result = inputs.EXT.amount and inputs.EXT

it works

Related Posts Replies Views Activity
0
Apr 22
5
0
Aug 15
2942
1
Dec 24
26
1
Nov 24
53
0
Dec 23
342