Skip to Content
avatar image
Former Member

Operation for number of Earn leave availed in the year

Hi,

I have the requirement whereby Earn leave entitlement will be generated for the worker only if he has been present for at least 240 days in the year.

In case of the number of present days are less then 240, then if sum total of number of Present days and Earn leaves availed in the year equals 240 Earn leave entitlement should be generated.

I am able to get no. present days but am not sure how to get number of Earn leave availed and only in the current year.

Can I use operation "VARSTLRDxy"? If not then please suggest the appropriate operation.

Thanks

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 28, 2010 at 09:40 AM

    Hi,

    Please help me with below issue...

    Add comment
    10|10000 characters needed characters exceeded

    • An other solution would be to use PCRs to create a "counter" for Presence + Earned Leave.

      A first PCR adds the number 1 to the Daily value of the counter.

      A second PCR does nothing special if it is the first day of month XX (the beginning of the "counting" year), but if it is any other day, it adds last day's number to today's number.

      On the first day of month XX, a third PCR could then check if last day's number and create the New Year's Quota if it is equal or greater than 240.