SPA_T_CLOCK_VW2(SQL View) |
Index Back |
---|
SELECT dly.BUSINESS_UNIT ,dly.TIME_SHEET_ID ,dly.WORK_ORDER_ID ,dly.DATE_UNDER_RPT ,dly.DATE_SEQ ,dly.LINE_NBR ,dtl.DISTRIB_LINE_NUM ,dtl.ACTIVITY_ID ,dtl.SHIFT_ID ,dtl.ASSIGNMENT_ID ,dtl.TIME_LINE_STATUS ,dtl.SPA_BILLING_ACTION ,%Round(dly.SP_TIME_QTY, 2) ,dly.SPA_START_TIME ,dly.TIME_BREAK_DUR ,dly.SPA_STOP_TIME ,MAX(hly.TRC) AS TRC FROM PS_SPA_TIME_DTL dtl , PS_SPA_TIM_DTL_DLY dly , PS_SPA_TM_DTL_HRLY hly WHERE dtl.BUSINESS_UNIT = dly.BUSINESS_UNIT AND dtl.TIME_SHEET_ID = dly.TIME_SHEET_ID AND dtl.WORK_ORDER_ID = dly.WORK_ORDER_ID AND dtl.LINE_NBR = dly.LINE_NBR AND dlY.BUSINESS_UNIT = Hly.BUSINESS_UNIT AND dlY.TIME_SHEET_ID = Hly.TIME_SHEET_ID AND dlY.WORK_ORDER_ID = Hly.WORK_ORDER_ID AND dlY.LINE_NBR = Hly.LINE_NBR AND DLY.DATE_SEQ= HLY.DATE_SEQ AND DLY.DATE_UNDER_RPT = HLY.DATE_UNDER_RPT GROUP BY dly.BUSINESS_UNIT ,dly.TIME_SHEET_ID ,dly.WORK_ORDER_ID ,dly.DATE_UNDER_RPT ,dly.DATE_SEQ ,dly.LINE_NBR ,dtl.DISTRIB_LINE_NUM ,dtl.ACTIVITY_ID ,dtl.SHIFT_ID ,dtl.ASSIGNMENT_ID ,dtl.TIME_LINE_STATUS ,dtl.SPA_BILLING_ACTION ,dly.SP_TIME_QTY ,dly.SPA_START_TIME ,dly.TIME_BREAK_DUR ,dly.SPA_STOP_TIME |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | TIME_SHEET_ID | Character(10) | VARCHAR2(10) NOT NULL | Time Sheet Unique Identifier (System Generated) |
3 | WORK_ORDER_ID | Character(15) | VARCHAR2(15) NOT NULL |
Work Order ID
Prompt Table: SPA_TIME_WO2_VW |
4 | DATE_UNDER_RPT | Date(10) | DATE NOT NULL | Date Under Report |
5 | DATE_SEQ | Number(3,0) | SMALLINT NOT NULL | Date Sequence |
6 | LINE_NBR | Number(5,0) | INTEGER NOT NULL | Line Number: 11/24/08 - Added TARGET label [PC product] |
7 | DISTRIB_LINE_NUM | Number(5,0) | INTEGER NOT NULL |
Distribution Line
Prompt Table: SPF_WO_DIST_VW |
8 | ACTIVITY_ID | Character(15) | VARCHAR2(15) NOT NULL |
Activity ID
Prompt Table: SPF_ACTIVITY_VW |
9 | SHIFT_ID | Character(10) | VARCHAR2(10) NOT NULL |
Shift ID
Prompt Table: SPA_TIM_SHFT_VW |
10 | ASSIGNMENT_ID | Character(15) | VARCHAR2(15) NOT NULL |
Work Assignment ID
Prompt Table: SPA_TIM_ASGN_VW |
11 | TIME_LINE_STATUS | Character(3) | VARCHAR2(3) NOT NULL |
Time Line Status
ADJ=Adjusted APR=Approved DEN=Denied OPN=Open PND=Pending SUB=Submitted |
12 | SPA_BILLING_ACTION | Character(1) | VARCHAR2(1) NOT NULL |
Billing Action
B=Billable U=Nonbillable Default Value: B |
13 | TIME_QUANTITY | Signed Number(16,2) | DECIMAL(14,2) NOT NULL | Time Quantity |
14 | SPA_START_TIME | Time(15) | TIMESTAMP | Start time used in time entry with the 24-hour clock option. |
15 | TIME_BREAK_DUR | Number(3,0) | SMALLINT NOT NULL |
Break Duration (Min)
Default Value: 0 |
16 | SPA_STOP_TIME | Time(15) | TIMESTAMP | Start time used in time entry with the 24-hour clock option. |
17 | TRC | Character(5) | VARCHAR2(5) NOT NULL |
Time Reporting Code
Prompt Table: SPA_TL_TRC_VW |