GPES_ADLNREM_VW

(SQL View)
Index Back

Adv/Loan Rem. total repayments

Sums all the remaining repayments by emplid, type ( Advance or Loan) and currency code. This is used at termination time to deduct all the employee pending repayments from the termination payment.

SELECT A.EMPLID , A.SEQNUM , A.GPES_ADVLOAN_OPT , %Coalesce (A.GPES_PYMNT_DT , A.GPES_DED_BEG_DT) , A.GPES_DED_BEG_DT , A.CURRENCY_CD , A.GPES_ADLN_AMT ,X.GPES_DED_AMT FROM PS_GPES_ADV_LOAN A LEFT OUTER JOIN PS_GPES_LN_RSLT_VW X ON A.EMPLID = X.EMPLID AND A.SEQNUM = X.SEQNUM

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

Prompt Table: PERSON

2 SEQNUM Number(3,0) SMALLINT NOT NULL Sequence Number
3 GPES_ADVLOAN_OPT Character(1) VARCHAR2(1) NOT NULL Advance/Loan option
1=Advance
4=Loan
4 GPES_PYMNT_DT Date(10) DATE Advance/Loan payment date or EFT Payment Date
5 GPES_DED_BEG_DT Date(10) DATE Advance/Loan deduction begin date
6 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
7 GPES_ADLN_AMT Number(11,2) DECIMAL(10,2) NOT NULL Advance/loan amount
8 GPES_DED_AMT Number(11,2) DECIMAL(10,2) NOT NULL Advance/Loan repayment deduction amount