Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
13962 มุมมอง

i create unpaid leave for 0.23 days 

put when i compute the payslip it calculate as 1 day.

and when i set any number in leave less than day still payslip compute as a day?

this is my salary rules for unpaid leave:

Condition: result=worked_days.Unpaid and worked_days.Unpaid.number_of_days or False

Computation: result=-(contract.wage/30)*worked_days.Unpaid.number_of_days


Any Help Please ........



 

อวตาร
ละทิ้ง

can you share the salary rule please ?

same salary rule you have used.

คำตอบที่ดีที่สุด

I don't Know the reason for getting wrong value for your code.

Here Are the steps I followed. Pieter has taken 1.69 leaves of Unpaid and I added a rule to deduct form payslip.



Here is the slip


The calculation is


Basic wage = 2000

1.5 leaves to deduct. so -(2000/30) *  1.5 ie, 100

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ก.ค. 18
3839
4
ก.ย. 25
6567
2
ธ.ค. 24
12356
0
มี.ค. 23
1660
0
มี.ค. 23
2639