[{TableOfContents }]
!!!Non Overlay Leave

!!Time Rule Overview
This helper time rule manages the issue of Leaves entered on the WETTS and the WEALP forms that do not respect the 'Adjust Schedule Time' toggle on the IDTC form.  This time rule instructs the system not to overlay the scheduled time when a Leave is entered.  This rule works in conjunction with the From/To time sheets.

* When scheduled time does not exist, an hourly leave time sheet entry is generated using standard hours per day. 

* When scheduled time exists (generated based on a shift definition)and the From/To times are__ not__ defined, an hourly leave time sheet entry is generated using the shift work time to determine the hours.

* When scheduled time exists (generated based on a shift definition) and From/To times are defined, an hourly leave time sheet entry is generated using the shift work time and the From/To times to determine the hours.

%%information Note:\\
*Since this is a helper/indicator time rule, the system generated hourly leave time sheet entry will have the source marked as Generated. 
*This time rule is an indicator during the time generation for a From/To time sheet.
*This rule is invoked when a leave is added through leave line form (AAL table), or through time exceptions (TTX table).  
*This rule is invoked during the time generation of the current time sheet, and does not have any impact on prior period adjustments that are keyed in on the current time sheet, since the adjustments are key in through  time sheet entries ([PTSE|P2K_PR_TIME_SHEET_ENTRIES] table)%%

When you look from the time sheet perspective this can appear to be confusing, but when you look from the time scheduling prospective, this is the best way to manage these scenarios.

Below is a list of what occurs behind the scenes for both types of time sheets, and what the limitations are.

#Hourly time sheets\\The toggle is respected.\\The process here is this: we generate time (PTSE) base on work calendar, and at this level we have an auto balancing process that takes in consideration this toggle.\\When you enter a [Leave Line (AAL)|P2K_AT_LEAVE_LINES] a PTSE is created.

#From/To time Sheets\\The toggle is NOT respected.\\The time generation engine is very complex and need to cover different business and its main focus is not PTSE, PTSE is a later result.

Main steps:

*TSH+TTX = TTE  (Time Sheets + Time Exceptions = Time Entries)

*Time Entries (TTE) with time code is moved on PTSE in case that we have an open timesheet.

*If timesheet does not exist we stop at TTE level until a open timesheet is created.

When you enter an Leave Line (AAL), a Time Exception (TTX) is created and is apply against the time generated by Time Sheet (TSH).

From a schedule perspective when you enter a leave Line (AAL) means you are not there, so the time generation engine removes the work time on leave TTX time frame and create vacancies, so even if we create a auto balancing process for this kind of time sheets, it is too late since the time is already generated ahead.

Also, during the time generation TSH + TTX we may not have the time code available.

The time code is attached later ( e.g. default time code time rule )

This time rule is a indicator to change the behavior of time generation engine to process this leave TTX on a different path then the regular one. 

!!Additional Info
*[Frequency|FREQUENCY]
**predefined as Never


!!Implementation
||[Band|QUALIFYING_BAND]||[From|FROM_CLOCK_TIME]||[To|TO_CLOCK_TIME] ||[Value|TIME_RULE_VALUE]||[Day Of Week |DAY_OF_WEEK]||[Time Code|TIME_CODE]||[Premium |PREMIUM_CODE]||[Action|TIME_RULE_ACTION]||Target Time Code Set||Apply Time Code Set      
|0|No|No|No|No|No|No|No|No|No

----
![Notes|Edit:Internal.TR_NON_OVERLAY_LV]
[{InsertPage page='Internal.TR_NON_OVERLAY_LV' default='Click to create a new notes page'}]