Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2413 Tampilan


i'm an admin user in my company and i enroll check in & out manually for my team on Odoo 11 but it didn't appear in payroll so 1- how can i make pay roll pending on actual attendance ?

2- how to make salary rule pending on number of actual attendance in the company ?


Avatar
Buang

If you are looking to deduct the salary based on the leaves, you can follow what jithin has explained in answer, see the video illustration of it: https://www.youtube.com/watch?v=Drr4tDzmsbg

Jawaban Terbai

Hi Eslam Ahmed, Try like below:

Create salary rule to deduct unpaid leaves pay from payslip.
 payroll -> salaryrules -> create,  add new rule
 - select a rule category:deductions
 - Computation : Python Code.

Python Code :

#Our Computation code to calculate amount In case of 31 days
try:
result =-(contract.wage/31) * worked_days.Unpaid.number_of_days
except:
result = 0
Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
2
Jul 24
2734
1
Jun 24
5189
1
Okt 23
10922
1
Okt 23
98
1
Agu 23
2194