EX_PMT_ADVNC_VW(SQL View) |
Index Back |
---|---|
Employee Payment Advnce Inq Vw |
select A.BANK_SETID, A.BANK_CD, A.BANK_ACCT_KEY, A.PYMNT_ID, A.ADVANCE_ID, B.ADV_STATUS, B.ADVANCE_NAME, B.CREATION_DT, SUM(C.MONETARY_AMOUNT), C.CURRENCY_CD, 'A' from PS_EX_ADVNCE_PYMNT A, PS_EX_ADV_HDR B, PS_EX_ADV_LINE C, PS_SET_CNTRL_REC D, PS_EX_ADV_SRC_TBL E where A.ADVANCE_ID = B.ADVANCE_ID and B.ADVANCE_ID = C.ADVANCE_ID and A.LINE_NBR = C.LINE_NBR and D.SETID = E.SETID and D.SETCNTRLVALUE= B.BUSINESS_UNIT_GL and D.RECNAME='EX_ADV_SRC_TBL' and C.ADVANCE_SOURCE = E.ADVANCE_SOURCE and E.EFF_STATUS = 'A' and E.EFFDT=(select MAX(X.EFFDT) from PS_EX_ADV_SRC_TBL X where X.SETID = E.SETID and X.ADVANCE_SOURCE = C.ADVANCE_SOURCE and X.EFFDT <= %CurrentDateIn) and A.SEQ_NBR = (select MAX(A1.SEQ_NBR) from PS_EX_ADVNCE_PYMNT A1 where A1.ADVANCE_ID = A.ADVANCE_ID and A1.LINE_NBR = A.LINE_NBR and A1.PYMNT_ID = A.PYMNT_ID) group by A.BANK_SETID, A.BANK_CD, A.BANK_ACCT_KEY, A.PYMNT_ID, A.ADVANCE_ID, B.ADV_STATUS, B.ADVANCE_NAME, B.CREATION_DT, C.CURRENCY_CD |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | BANK_CD | Character(5) | VARCHAR2(5) NOT NULL | Bank Code |
3 | BANK_ACCT_KEY | Character(4) | VARCHAR2(4) NOT NULL | A user defined unique identifier that facilitates the identification of a given account with a given bank |
4 | PYMNT_ID | Character(10) | VARCHAR2(10) NOT NULL | Payment Number |
5 | ADVANCE_ID | Character(10) | VARCHAR2(10) NOT NULL | Advance ID |
6 | ADV_STATUS | Character(3) | VARCHAR2(3) NOT NULL |
Advance Status
APY=Approved for Payment CLS=Closed DEN=Denied DNA=Denied by Approver DNU=Denied by Auditor HDA=On Hold, with Approver HDU=On Hold, with Auditor HLD=On Hold PAR=Approvals in Process PD=Paid PND=Pending PRO=In Process PST=Past Due Balance RAP=Approved RCN=Reconciled RRT=Reroute Transaction SFA=Submission in Process STG=Staged SUB=Submitted for Approval XML=Submitted, Pending Validation |
7 | ADVANCE_NAME | Character(30) | VARCHAR2(30) NOT NULL | Advance Description |
8 | CREATION_DT | Date(10) | DATE | Creation Date |
9 | MONETARY_AMOUNT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Specifies the monetary amount of a debit or credit in the business unit base currency. Debit entries are positive and credit entries are negative. This amount is only zero if associated with a statistical account. |
10 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
11 | EX_DOC_TYPE | Character(1) | VARCHAR2(1) NOT NULL |
Identifies Expenses Document Type
A=Cash Advance C=Time Report J=Time Adjustment M=Accrual - My Wallet R=Accrual - Expense Report S=Expense Report T=Travel Authorization |