Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
3 Respostas
15773 Visualizações

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
Cancelar
Melhor resposta

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
Cancelar
Melhor resposta

Hello, can you expound on 

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

where to put this code? I have same problem

Avatar
Cancelar
Melhor resposta
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
Cancelar

Please try using

result = inputs.EXT.amount and inputs.EXT

it works

Publicações relacionadas Respostas Visualizações Atividade
0
abr. 22
5
0
ago. 15
3776
1
set. 25
172
3
set. 25
396
1
ago. 25
542