!!!TR_DEDUCT_LUNCH

!!Time Rule Overview
The DEDUCT_LUNCH time rule reviews if the employee does not punch out for lunch, the number of hours the employee has worked in a day and if lunch should be deducted or not. 

Note that the adjusted lunch period is not seen on the Time Sheet [IPT]). This adjustment is only visible in the view audit tab. This adjustment will move forward with the functions [UPCTS] or [UPCTSP] as the transactions move to [IPTR] or [IPPH].

!!Requirements / Features
If out punch exist before the lunch time and the lunch time is less than the value defined on “Up To Hrs”(Value) then  the meal time  will be increase up to the specified value by reducing the  time register  under the time codes defined in the apply time code set


!!Additional  Info 

•	Frequency predefined as Shift
•	The time rule should be set up in [IDWR] as shown below

!!Implementation
||Band||From||To||Value||Day||Time Code||Premium||Action||Target Time Code Set||Apply Time Code Set
|Threshold time[1]\\>=|No|No|Up To hours[2]|Supported	Required[3]|No|Replace|Required[4]|Required[5]

[#1] Maximum hours to work without a meal. 
The rule will be executed if the work hours are equals or bigger than the hours defined in the band field.

[#2] Maximum of the meal time to be deducted

[#3] Lunch time code

[#4] Target Time Code Set should contain the meal time codes

[#5] Set of work time codes (e.g. regular, clock in early, clock out late)
Attention: this rule will be applied only if an out punch does not exist before meal time.


Apply Time Code   should contain something like work time ( time codes:  in early, unknown leave)