Former Member

# Leave configuration for 240+15 leaves...

Hello Experts,

I have a query, I have a type of leave 'EARNED Leave' where in the total number of leaves accumulated by an employee can be 240 .... beyond 240 he can add UPTO 15 leaves to his balance .... however..

1) Those 'upto' 15 should not be added in the current balance of 240

2) If an employee applies for a leave of should first be deducted from the 15..and then 240 ....

So basic leave configuration is done ....and the leave is being displayed...... however, I would like to know .... if this scenario can be configured and how?!?!

Thank you!!!!

10|10000 characters needed characters exceeded

### Related questions

Posted on Dec 18, 2015 at 04:59 AM

Create a new quota and name it Quota over 240. When EL is applied set deduction priority in the quotas such that the EL over 240 is deducted first and then the EL quota is reduced.

Raghu

10|10000 characters needed characters exceeded
• Former Member
Posted on Dec 18, 2015 at 05:46 AM

Hi,

You could handle this issue through custom PCR. You have to follow below steps -

1) Write a PCR to generate yearly Quota.

2) Carry forward remaining Early Quota

3) Compare carry forward total quota with 240. If C/F quota exceed 240 store it in another Quota type and allow to store upto 15. Then change deduction rule as priority basis.

Thanks

10|10000 characters needed characters exceeded
• Posted on Dec 18, 2015 at 06:35 AM

Hi,

Your requirement is like below as per my understanding.

You have earned leave quota type (Say 10) and it's maximum limit is 240. After that whatever quota value he will receive that will cumulate to another leave quota type (Say 11) and it's maximum value is 15. Am I correct?

Now whenever quota deduction will take place then system should deduct quota from 11 first and then 10.

I am taking that you are generating quota value 240 correctly in the system. You will sue the day time say 1010 for quota type 11 to update the quota amount .

ZCHK

*

****

HRS=FR10C

HRS?CZMAXQ

*

LEAVE

>

HRS=FR10C

HRS-CZMAXQ

HRS=FR10C

HRS-D1020

UPDTQA10

PCY ZCHKA

A

****

HRS=FR11C

HRS?CZMAXE

=

LEAVE

<

HRS=FR11C

HRS+D1020

HRS=D1030

HRS?CZMAXE

<

HRS=D1030

UPDTQA11

*

HRS=CZMAXE

UPDTQA11

Here ZMAXQ and ZMAXE is the constant for 240 and 15 which is stored in constant table V_T511K.

Check and let me know.

Regards,Sankarsan