cancel
Showing results for 
Search instead for 
Did you mean: 

Allowance Calculation based on Leaves

Former Member
0 Kudos

Hi

Greetings!

I have a xyz allowance which is paid every month of 1000/-, when an employee has full working days in a month he will get 1000 rupees, if employee is absent on casual leave/privilege leave or due to loss of pay, lets say he was absent 2 days in a month, then the allowance must get calculated as ; 1000 - 2(No of leaves)*200 = 600.

The employee must get as 600 as allowance, if the employee is absent for 5 days or more than 5 days he will not get this allowance.

If there is a solution please let me know.

Thanking you

Manoj

Edited by: K Manoj on Mar 9, 2012 10:25 AM

Accepted Solutions (1)

Accepted Solutions (1)

AshishBhati
Contributor
0 Kudos

You can create a rule for it and process the pcr in payroll.

-Ashish

Former Member
0 Kudos

Hi Ashish,

Can you help me out with pcr,

Taking which variable key and all those step...

Thanking you

Manoj

Former Member
0 Kudos

Hi Manoj,

Suppose ABCD is the wagetype for xyz allowance. I hope you are getting this 1000 amount from T510.

This is the logic of PCR for your requirement.

*

ABCD

NUM=TKAU** --> Getting Unpaid Absences (Suppose 2)

RTE=KCONS2 --> Maintain CONS2 constant in T511K Table with 200

MULTI NRA --> Multiplying No.of Absences with 200.. that is 400

ADDWT &BUFF --> Saving that in one Variable

FILFF NRA --> Restoring Actual values

AMT- &BUFF --> Subtracting from 1000 and you will get the 600

AMT?0

*

ADDWT *

<

AMT=0 --> if amount is less than 0 then amount will bocome 0

Hope this helps.

Pradeep.

Former Member
0 Kudos

Thanks very much for your help,

the pcr which you have given takes only unpaid absences, where as i want to consider paid absences also, for that what should i take,----


like you have taken TKAU** - for unpaid absences,

help me out

Thanks

Manoj k

Former Member
0 Kudos

Hi Manoj,

For Paid Absences take TKAP**

That means

*

ABCD

NUM=TKAU** --> Getting Unpaid Absences (Suppose 2)

NUM+TKAP**

RTE=KCONS2 --> Maintain CONS2 constant in T511K Table with 200

MULTI NRA --> Multiplying No.of Absences with 200.. that is 400

ADDWT &BUFF --> Saving that in one Variable

FILFF NRA --> Restoring Actual values

AMT- &BUFF --> Subtracting from 1000 and you will get the 600

AMT?0

*

ADDWT *

<

AMT=0 --> if amount is less than 0 then amount will bocome 0

Hope this helps.

Pradeep.

sikindar_a
Active Contributor
0 Kudos

use TKAP**

Former Member
0 Kudos

Thanks you are helping me a lot,

but my requirement haven't fullfilled, as i wrote everything as you have said but its not deducting,

my doubt is with ADDWT&BUFF - here variable key ... here the total absences and the constant amount which saved in table is saved like 2*200= 400, where is this 400 saved , and how will the system pick the value 1000,

me thinking its near to get solved but stucked here,

Sorry for the trouble,

Thanking you

Manoj K

Former Member
0 Kudos

Hi Manoj,

Our whole logic is on ABCD Wagetype.

We are doing operation on NUM RTE and Amount of ABCD. At that the original values will be changed. After doing operations the calculated values we save in &BUFF(This is runtime variable and is saved in internal memory).

Once done, FILLF Statement refills the original value of ABCD that is 1000.

(In my previous message spelling was wrong. It is not FILFF)

Hope this helps.

Pradeep.

Former Member
0 Kudos

hi pradeep,

sorry for delay in response i was not well and has to take 1 month rest so couldnt work,

this is not solved and when i am trying to write this pcr system is only throwing the amount 1000 its not deducting the leave amount from 1000.

help me out

thanks

manoj

Answers (0)