GPNZ_PDR_AS_VW

(SQL View)
Index Back

PDR Data

Employee Data Level for PDR

SELECT A.PAY_ENTITY , A.GPNZ_PDR_YEAR , A.PYMT_DT , A.CAL_RUN_ID , A.CAL_ID , A.GP_PAYGROUP , A.GPNZ_PDR_RNTYP , A.GPNZ_PDR_VERSION , A.GPNZ_PDR_STATUS , A.EMPLID , A.BALANCE_GRP_NUM , A.PRD_BGN_DT , A.PRD_END_DT , A.FREQUENCY_ID , A.GPNZ_TAX_SCALE , A.GPNZ_TAX_GROSS , A.GPNZ_LUMP_SUM_FLAG , A.GPNZ_GROSS_NO_EP , A.GPNZ_PAYE_TAX_AMT , A.GPNZ_TX_CRDT_PG , A.GPNZ_CHILD_SUP_AMT , A.GPNZ_CHILD_SUP_VAR , A.GPNZ_STUD_LOAN_AMT , A.GPNZ_SSCWT_AMT , A.GPNZ_KIWI_EE_DED , A.GPNZ_KIWI_ER_DED , A.GPNZ_START_DT , A.GPNZ_FINISH_DT , A.GPNZ_CHILD_SUP_REG , A.GPNZ_FAM_ASST_AMT , A.GPNZ_KIWI_ECST_DED , A.GPNZ_EE_LUMP_SUM , A.GPNZ_IRD_NUMBER , A.GPNZ_SLCIR_AMT , A.GPNZ_SLBOR_AMT , A.GPNZ_GROSS_ESS , A.GPNZ_PAID_HOURS FROM PS_GPNZ_PDR_EE_DTL A WHERE A.GPNZ_PDR_VERSION = ( SELECT MAX(VR.GPNZ_PDR_VERSION) FROM PS_GPNZ_PDR_EE_DTL VR WHERE VR.PAY_ENTITY = A.PAY_ENTITY AND VR.GPNZ_PDR_YEAR = A.GPNZ_PDR_YEAR AND VR.PYMT_DT = A.PYMT_DT AND VR.CAL_RUN_ID = A.CAL_RUN_ID AND VR.CAL_ID = A.CAL_ID AND VR.GPNZ_PDR_RNTYP = A.GPNZ_PDR_RNTYP AND VR.EMPLID = A.EMPLID)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 PAY_ENTITY Character(10) VARCHAR2(10) NOT NULL Pay Entity
2 GPNZ_PDR_YEAR Character(4) VARCHAR2(4) NOT NULL Year code
3 PYMT_DT Date(10) DATE Payment Date
4 CAL_RUN_ID Character(18) VARCHAR2(18) NOT NULL Calendar Run Id
5 CAL_ID Character(18) VARCHAR2(18) NOT NULL calendar id
6 GP_PAYGROUP Character(10) VARCHAR2(10) NOT NULL Global Payroll pay group
7 GPNZ_PDR_RNTYP Character(3) VARCHAR2(3) NOT NULL PDR Run Type
AMD=Amendment
NRM=Original
OVR=Override

Default Value: NRM

8 GPNZ_PDR_VERSION Number(10,0) DECIMAL(10) NOT NULL New Field - Version added for PDR
9 GPNZ_PDR_STATUS Character(1) VARCHAR2(1) NOT NULL Issue status describes the level of the report.PDR Issued status
3=PDR File Generated
4=PDR Ready
10 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
11 BALANCE_GRP_NUM Character(3) VARCHAR2(3) NOT NULL This field will be used to determine the grouping of balances from the different jobs of the employee.
12 PRD_BGN_DT Date(10) DATE Period Begin Date
13 PRD_END_DT Date(10) DATE Pay Period End Date
14 FREQUENCY_ID Character(5) VARCHAR2(5) NOT NULL Defines a frequency and a set of parameters used for frequency conversion. Typically, these frequencies reflect how often an event occurs. Some examples are compensation frequency and pay frequency.
15 GPNZ_TAX_SCALE Character(4) VARCHAR2(4) NOT NULL New Zealand Tax Scale
16 GPNZ_TAX_GROSS Signed Number(16,2) DECIMAL(14,2) NOT NULL Taxable Gross Amount from Taxable Gross MTD Accumulator
17 GPNZ_LUMP_SUM_FLAG Character(1) VARCHAR2(1) NOT NULL GPNZ Lump Sum Indicator
0=Lump Sum Off
1=Lump Sum On
N=Lum Sum Off
Y=Lump Sum On
18 GPNZ_GROSS_NO_EP Signed Number(16,2) DECIMAL(14,2) NOT NULL Gross Not Liable EP Amount from Retire/Redund MTD Accumulator
19 GPNZ_PAYE_TAX_AMT Signed Number(16,2) DECIMAL(14,2) NOT NULL PAYE Tax Amount from PAYE Tax MTD Accumulator
20 GPNZ_TX_CRDT_PG Signed Number(16,2) DECIMAL(14,2) NOT NULL Field to hold the tax credit for payroll giving
21 GPNZ_CHILD_SUP_AMT Signed Number(16,2) DECIMAL(14,2) NOT NULL Child Support Amount from Child Support MTD Accumulator
22 GPNZ_CHILD_SUP_VAR Character(1) VARCHAR2(1) NOT NULL Describes the variation key for child support
A=Advance Pay
C=Ceased Employment
D=Deducted previously
O=Other
P=Protected Earnings
S=Short Term Absence
23 GPNZ_STUD_LOAN_AMT Signed Number(16,2) DECIMAL(14,2) NOT NULL Student Loan Amount from Student Loan MTD Accumulator
24 GPNZ_SSCWT_AMT Signed Number(16,2) DECIMAL(14,2) NOT NULL SSCWT Amount
25 GPNZ_KIWI_EE_DED Signed Number(16,2) DECIMAL(14,2) NOT NULL KIWI DD EE from KIWI DD EE MTD accumulator
26 GPNZ_KIWI_ER_DED Signed Number(16,2) DECIMAL(14,2) NOT NULL KIWI DD ER from KIWI DD ER MTD accumulator
27 GPNZ_START_DT Date(10) DATE Start Date for employees that have commenced employment during the month
28 GPNZ_FINISH_DT Date(10) DATE Finish Date for employees terminated during the month
29 GPNZ_CHILD_SUP_REG Signed Number(16,2) DECIMAL(14,2) NOT NULL This field is used as a work field in the year end process
30 GPNZ_FAM_ASST_AMT Number(15,2) DECIMAL(14,2) NOT NULL Family Assist Amount
31 GPNZ_KIWI_ECST_DED Signed Number(16,2) DECIMAL(14,2) NOT NULL This field is used to capture ECST deduction made on the KiwiSaver Employer Contributions.
32 GPNZ_EE_LUMP_SUM Number(15,2) DECIMAL(14,2) NOT NULL EE Lump Sum from EE Lump Sum Accumulator
33 GPNZ_IRD_NUMBER Character(9) VARCHAR2(9) NOT NULL New Zealand IRD Number
34 GPNZ_SLCIR_AMT Signed Number(16,2) DECIMAL(14,2) NOT NULL Student Loan Amount from Student Loan MTD Accumulator
35 GPNZ_SLBOR_AMT Signed Number(16,2) DECIMAL(14,2) NOT NULL Student Loan Amount from Student Loan MTD Accumulator
36 GPNZ_GROSS_ESS Signed Number(16,2) DECIMAL(14,2) NOT NULL Gross Not Liable EP Amount from ESS MTD Accumulator
37 GPNZ_PAID_HOURS Signed Number(12,2) DECIMAL(10,2) NOT NULL Paid Hours