Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10498

Re: Absence Quota Generation

$
0
0

I am checking for the Absence Quota Type (97 - Personal Leave).

 

If yes, then check for the days from the Anniversary date.

On the 181th day from Anniversary date, I set the quota number = 0 and add 8 hours that day.

On the 366th day from Anniversary date, I set the quota number = 0 and add 16 hours that day.

On the 731st day from Anniversary date, I set the quota number = 0 and add 24 hours that day.

 

After that, I do similar checking every year till the next 85 years of service (In Rules &QT2 till &QT13)....bit lenghty, but that was what the company has been using for years now, I just tweaked it a little bit to get it right.

 

Again the problem here is, as I am re-setting the Quota to the right amounts, I would like to reset the used hours for the previous year also, when I update the quota. How to do that?

 

below is the logic in tree format:

 

&QTA Quota Accumulation for Personal Time

    *

      ****

        OUTAQTYP   Quota type

          **

          97

            HRS=YDAD01 Set

            HRS?181    Decision op.     HRS

              *

                HRS=YDAD01 Set

                HRS?366    Decision op.     HRS

                  *

                    HRS=YDAD01 Set

                    HRS?731    Decision op.     HRS

                      *

                        GCY &QT2   Goto PC rule

                      =

                        HRS=0      Set

                        HRS+24.00  Addition

                        ADDDB0410Z Set day balance = 0

                        %PDTQA97   Abs. Quota Accrual

                  =

                    HRS=0      Set

                    HRS+16.00  Addition

                    ADDDB0410Z Set day balance = 0

                    %PDTQA97   Abs. Quota Accrual

              =

                HRS=0      Set

                HRS+8.00   Addition

                ADDDB0410Z Set day balance = 0

                %PDTQA97   Abs. Quota Accrual

 

 

Thanks again.


Viewing all articles
Browse latest Browse all 10498

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>