Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
13781 Zobrazení

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 ........



 

Avatar
Zrušit

can you share the salary rule please ?

same salary rule you have used.

Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvc 18
3732
4
zář 25
6389
2
pro 24
12041
0
bře 23
1566
0
bře 23
2488