on 03-09-2012 4:54 AM
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
You can create a rule for it and process the pcr in payroll.
-Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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.
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
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.
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.