跳至內容
選單
此問題已被標幟
3 回覆
15589 瀏覽次數

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

頭像
捨棄
最佳答案

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!

頭像
捨棄
最佳答案

Hello, can you expound on 

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

where to put this code? I have same problem

頭像
捨棄
最佳答案
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 
頭像
捨棄

Please try using

result = inputs.EXT.amount and inputs.EXT

it works

相關帖文 回覆 瀏覽次數 活動
0
4月 22
5
0
8月 15
3695
0
8月 25
3
1
8月 25
377
1
7月 25
683