Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
3 Odpowiedzi
15418 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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!

Awatar
Odrzuć
Najlepsza odpowiedź

Hello, can you expound on 

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

where to put this code? I have same problem

Awatar
Odrzuć
Najlepsza odpowiedź
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 
Awatar
Odrzuć

Please try using

result = inputs.EXT.amount and inputs.EXT

it works

Powiązane posty Odpowiedzi Widoki Czynność
0
kwi 22
5
0
sie 15
3590
1
lip 25
513
1
lip 25
870
2
maj 25
1455