EX_EE_SHEET_VW

(SQL View)
Index Back

Expense Sheet Inquiry View


SELECT A.EMPLID , A.SHEET_ID , A.SHEET_NAME , A.SHEET_STATUS , MIN(B.TRANS_DT) , MAX(B.TRANS_DT) , SUM(B.MONETARY_AMOUNT) , B.CURRENCY_CD , A.SUBMISSION_DATE , A.POST_STATUS_EX , 'S' FROM PS_EX_SHEET_HDR A , PS_EX_SHEET_LINE B WHERE A.SHEET_ID = B.SHEET_ID AND A.SHEET_STATUS IN ('CLS', 'ESC', 'DEN', 'DNA', 'DNU', 'PD', 'STG') GROUP BY A.EMPLID, A.SHEET_ID, A.SHEET_NAME, A.SHEET_STATUS, B.CURRENCY_CD, A.SUBMISSION_DATE, A.POST_STATUS_EX

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
2 SHEET_ID Character(10) VARCHAR2(10) NOT NULL Report ID
3 SHEET_NAME Character(30) VARCHAR2(30) NOT NULL Report Description
4 SHEET_STATUS Character(3) VARCHAR2(3) NOT NULL Report Status
APY=Approved for Payment
APZ=Approved For Zero Payment
CLS=Closed
DEN=Denied
DNA=Denied by Approver
DNU=Denied by Auditor
ESC=Escheated Payment
HDA=On Hold, with Approver
HDU=On Hold, with Auditor
HLD=On Hold
MFS=Marked for Submit
OPN=Open
PAR=Approvals in Process
PD=Paid
PND=Pending
PRO=In Process
RAP=Approved
SFA=Submission in Process
STG=Staged
SUB=Submitted for Approval
XML=Submitted, Pending Validation
5 FROM_DT Date(10) DATE From Date
6 THRU_DATE Date(10) DATE Through Date
7 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.
8 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
9 SUBMISSION_DATE Date(10) DATE Submission Date
10 POST_STATUS_EX Character(1) VARCHAR2(1) NOT NULL Expenses Post Status
C=Closed
M=Marked for Unpost
N=Not Applied
O=Unpost In Process
P=Posted
S=Close In Process
U=Unposted
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