TL_URPT_DTL_VW(SQL View) |
Index Back |
---|---|
Unprocessed Reported Time |
SELECT R.EMPLID , R.EMPL_RCD , R.DUR , R.TRC , R.REPORTED_STATUS , R.TL_QUANTITY , R.PUNCH_TYPE , R.PUNCH_TIME , R.DTTM_MODIFIED FROM PS_TL_RPTD_TIME R , PS_TL_TR_STATUS T WHERE R.EMPLID=T.EMPLID AND R.EMPL_RCD=T.EMPL_RCD AND ( R.REPORTED_STATUS IN ('SV','NA','PB','DN') OR (R.DTTM_MODIFIED >= T.LAST_PRCS_DTTM) OR T.LAST_PRCS_DTTM IS NULL OR EXISTS( SELECT 1 FROM PS_TL_EXCEPTION E , PS_TL_EXCEPT_DEFN ED WHERE E.EMPLID=R.EMPLID AND E.EMPL_RCD=R.EMPL_RCD AND E.DUR=R.DUR AND E.EXCEPTION_STATUS = 'U' AND E.EXCEPTION_ID = ED.EXCEPTION_ID AND ED.SEVERITY='H' AND ED.EFFDT = ( SELECT MAX(EFFDT) FROM PS_TL_EXCEPT_DEFN SUB WHERE SUB.EXCEPTION_ID=ED.EXCEPTION_ID AND SUB.EFFDT <= R.DUR))) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Record |
3 | DUR | Date(10) | DATE | Date Under Report associates time being reported, scheduled or paid, to a specific date. |
4 | TRC | Character(5) | VARCHAR2(5) NOT NULL |
Time Reporting Code used to report time in Time and Labor
Prompt Table: TL_TRC_TBL |
5 | REPORTED_STATUS | Character(2) | VARCHAR2(2) NOT NULL |
Reported Status
AP=Approved DN=Denied IP=Approval In Process NA=Needs Approval NW=New PB=Pushed Back PR=Processed SB=Submitted SV=Saved |
6 | TL_QUANTITY | Signed Number(20,6) | DECIMAL(18,6) NOT NULL | This field represents the measure of Work in hrs,amount etc., |
7 | PUNCH_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
Global Punch Types
0=Elapsed 1=In 2=Out 3=Meal 4=Break 5=Transfer |
8 | PUNCH_TIME | Time(15) | TIMESTAMP | punch time |
9 | DTTM_MODIFIED | DateTime(26) | TIMESTAMP | Datetime modified |