Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: PRS8HROT

PRS8HROT.m

Go to the documentation of this file.
  1. PRS8HROT ;JAH/WCIOFO-Calc time over 8/day &/or 40/week ;07/14/2008
  1. ;;4.0;PAID;**29,42,52,102,117**;Sep 21, 1995;Build 32
  1. ;;Per VHA Directive 2004-038, this routine should not be modified.
  1. ;
  1. OVER840 ;
  1. ; If overtime coded & either holiday worked or holiday excused
  1. ; Then set type of time to Holiday Hrs (shift Day, 2 or 3).
  1. ;
  1. I VAL="O",HOLWKEX S X=TOUR+28 D CHK^PRS8HRSV Q:X
  1. ;
  1. ; If > 8 hrs & not compressed ** results of G8
  1. ;
  1. I HT>32 D G8^PRS8HRSV Q:X
  1. ;
  1. I "1235nHMLSWNARUXYVJFGDZq"[VAL,NH>319 Q
  1. ;
  1. ; If Baylor Plan
  1. ;
  1. I TYP["B" D Q:X
  1. .;
  1. .; IF weeks hours greater than 8 & TIME not coded as comp-time
  1. .; THEN set TIME to OT-Total Hrs (shift Day, 2 or 3)
  1. .;
  1. .I HT>32 S X=$S("Ee"'[VAL:TOUR+19,1:7) D CHK^PRS8HRSV Q:X
  1. .;
  1. .; IF Total Hours for the current week are <= 40
  1. .; THEN TIME gets unscheduled regular.
  1. .;
  1. .I TH(W)'>160 S X=9 D CHK^PRS8HRSV Q:X
  1. .;
  1. .; IF Total Hours for the current week ARE > 40
  1. .; AND total hours for today are <= 8
  1. .; AND Time is not comp-time
  1. .; THEN Time gets Unscheduled regular.
  1. .;
  1. .I TH(W)>160,HT<33,"Ee"'[VAL S X=9 D CHK^PRS8HRSV Q:X
  1. ;
  1. ; IF not comp-time THEN Time = Overtime, otherwise
  1. ; part timers get unscheduled reg until 8/day, 40/week
  1. ; UNSCHEDULED REGULAR WILL BE CODED AS OT for over 8/day
  1. ;
  1. S X=$S("Ee"'[VAL:TOUR+19,1:7)
  1. D CHK^PRS8HRSV
  1. ;
  1. ;-------------------------------------------------------------------
  1. Q