GPFR_RSLT_N3_VW(SQL View) |
Index Back |
---|---|
Result view: Net + retroResult Table for the net to be paid (including retro) - Part 3 |
SELECT B.EMPLID ,B.CAL_RUN_ID ,B.EMPL_RCD ,B.GP_PAYGROUP ,B.CAL_ID ,B.RSLT_SEG_NUM ,D.PIN_NET_NUM ,%DecMult(D.PIN_NET_VAL,-1) ,B.PYMT_KEY1 ,B.PYMT_KEY2 ,B.PYMT_KEY3 ,B.PYMT_KEY4 ,D.CAL_ID ,'V' FROM PS_GP_PYE_SEG_STAT B , PS_GP_PYE_PRC_STAT C , PS_GP_PYE_SEG_STAT D , PS_GP_PYE_PRC_STAT PD WHERE B.CALC_ACTION='V' AND B.EMPLID = C.EMPLID AND B.CAL_RUN_ID = C.CAL_RUN_ID AND B.EMPL_RCD = C.EMPL_RCD AND B.GP_PAYGROUP = C.GP_PAYGROUP AND B.CAL_ID = C.CAL_ID AND C.CALC_TYPE='P' AND C.EMPLID = D.EMPLID AND C.ORIG_CAL_RUN_ID = D.CAL_RUN_ID AND C.EMPL_RCD = D.EMPL_RCD AND C.GP_PAYGROUP = D.GP_PAYGROUP AND C.CAL_ID = D.CAL_ID AND C.PRIOR_VER_NUM = D.RSLT_VER_NUM AND C.PRIOR_REV_NUM = D.RSLT_REV_NUM AND B.SEG_BGN_DT = D.SEG_BGN_DT AND B.SEG_END_DT = D.SEG_END_DT AND PD.EMPLID = D.EMPLID AND PD.CAL_RUN_ID = D.CAL_RUN_ID AND PD.EMPL_RCD = D.EMPL_RCD AND PD.GP_PAYGROUP = D.GP_PAYGROUP AND PD.CAL_ID = D.CAL_ID AND PD.CALC_TYPE='P' AND NOT EXISTS ( SELECT 'X' FROM PS_GP_PYE_SEG_STAT E WHERE B.EMPLID = E.EMPLID AND B.CAL_RUN_ID = E.CAL_RUN_ID AND B.EMPL_RCD = E.EMPL_RCD AND B.GP_PAYGROUP = E.GP_PAYGROUP AND B.PYMT_KEY1 = E.PYMT_KEY1 AND B.PYMT_KEY2 = E.PYMT_KEY2 AND B.PYMT_KEY3 = E.PYMT_KEY3 AND B.PYMT_KEY4 = E.PYMT_KEY4 AND E.CALC_ACTION = 'C' AND E.RSLT_VER_NUM = 1 AND E.RSLT_REV_NUM = 1) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
2 | CAL_RUN_ID | Character(18) | VARCHAR2(18) NOT NULL | Calendar Run Id |
3 | EMPL_RCD | Number(3,0) | SMALLINT NOT NULL | Empl Rcd Nbr |
4 | GP_PAYGROUP | Character(10) | VARCHAR2(10) NOT NULL | Global Payroll pay group |
5 | CAL_ID | Character(18) | VARCHAR2(18) NOT NULL | calendar id |
6 | RSLT_SEG_NUM | Number(4,0) | SMALLINT NOT NULL | Result Segment Number |
7 | PIN_NET_NUM | Number(8,0) | INTEGER NOT NULL | Element number field |
8 | PIN_NET_VAL | Signed Number(20,6) | DECIMAL(18,6) NOT NULL | Net Pay Value |
9 | PYMT_KEY1 | Character(25) | VARCHAR2(25) NOT NULL | Payment key field. Used for optional tracking of a payment per Department, Company, Establishment or Contract Number |
10 | PYMT_KEY2 | Character(25) | VARCHAR2(25) NOT NULL | Payment key field. Used for optional tracking of a payment per Department, Company, Establishment or Contract Number |
11 | PYMT_KEY3 | Character(25) | VARCHAR2(25) NOT NULL | Payment key field. Used for optional tracking of a payment per Department, Company, Establishment or Contract Number |
12 | PYMT_KEY4 | Character(25) | VARCHAR2(25) NOT NULL | Payment key field. Used for optional tracking of a payment per Department, Company, Establishment or Contract Number |
13 | GPFR_CAL_ID | Character(18) | VARCHAR2(18) NOT NULL | GPFR: Calendar ID |
14 | GPFR_ORIGIN_FLAG | Character(1) | VARCHAR2(1) NOT NULL |
Indicates if the result comes from a normal calculation, or a retro
C=Corrective delta E=Earning or deduction F=Forwarded delta M=Retro net to be paid (minus) P=Retro to be paid (plus) |