EX_SHEET_DTL_VW

(SQL View)
Index Back

Expense Lines View

Expense Lines View

SELECT LN.EMPLID , LN.SHEET_ID , LN.LINE_NBR , LN.MONETARY_AMOUNT , LN.CURRENCY_CD , LN.TRANS_DT , LN.EXPENSE_TYPE , LN.MERCHANT_CD , LN.MERCHANT , LN.TXN_LOCATION , LN.TXN_AMOUNT , LN.TXN_CURRENCY_CD , LN.DESCR254 , CASE WHEN LN.OUT_OF_POLICY = 'Y' OR (LN.NO_RECEIPT_FLG = 'Y' AND LN.RECEIPT_REQ_EX = 'Y') OR LN.PREF_MRCH_NOT_USED = 'Y' OR LN.OLDER_TRANSACTION = 'Y' OR (LN.TXN_AMOUNT < 0 AND LN.PERSONAL_EXPENSE = 'N') THEN 'Y' ELSE 'N' END , LN.SHEET_RCPT_NUM , IMG.EX_EXP_TYPE_IMG , IMG.PSIMAGEVER , ATTC.EX_MBL_NO_RECEIPTS , LN.EX_LINE_STATUS FROM (( SELECT HDR.EMPLID , HDR.SETID , LN.SHEET_ID , LN.LINE_NBR , LN.MONETARY_AMOUNT , LN.CURRENCY_CD , LN.TRANS_DT , LN.EXPENSE_TYPE , LN.MERCHANT_CD , LN.MERCHANT , LN.TXN_LOCATION , LN.TXN_AMOUNT , LN.TXN_CURRENCY_CD , LN.DESCR254 , LN.OUT_OF_POLICY , LN.NO_RECEIPT_FLG , LN.RECEIPT_REQ_EX , LN.PREF_MRCH_NOT_USED , LN.OLDER_TRANSACTION , LN.PERSONAL_EXPENSE , LN.SHEET_RCPT_NUM , LN.EX_LINE_STATUS FROM PS_EX_SHEET_HDR HDR , PS_EX_SHEET_LINE LN WHERE HDR.SHEET_ID = LN.SHEET_ID) LN LEFT OUTER JOIN PS_EX_EXP_TYPE_IMG IMG ON LN.SETID = IMG.SETID AND IMG.EXPENSE_TYPE = LN.EXPENSE_TYPE) LEFT OUTER JOIN PS_EX_ER_ATTACH_VW ATTC ON LN.SHEET_ID = ATTC.SHEET_ID AND LN.LINE_NBR = ATTC.LINE_NBR

# 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 LINE_NBR Number(5,0) INTEGER NOT NULL Line Number: 11/24/08 - Added TARGET label [PC product]
4 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.
5 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
6 TRANS_DT Date(10) DATE Transaction Date

Default Value: %Date

7 EXPENSE_TYPE Character(7) VARCHAR2(7) NOT NULL Expense Type
8 MERCHANT_CD Character(10) VARCHAR2(10) NOT NULL Preferred Merchant

Prompt Table: EX_MERCHANT_VW1

9 MERCHANT Character(40) VARCHAR2(40) NOT NULL Merchant
10 TXN_LOCATION Character(5) VARCHAR2(5) NOT NULL Expense Location

Prompt Table: EX_LOCATION_VW6

11 TXN_AMOUNT Signed Number(28,3) DECIMAL(26,3) NOT NULL Transaction Amount
12 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency
13 DESCR254 Character(254) VARCHAR2(254) NOT NULL Description of length 254
14 EXCEPTION_COMMENTS Character(1) VARCHAR2(1) NOT NULL Exception Comments
15 SHEET_RCPT_NUM Number(3,0) SMALLINT NOT NULL Receipt Number
16 EX_EXP_TYPE_IMG Image / Attachment(62) VARCHAR2(62) Expense Type Image
17 PSIMAGEVER Number(10,0) DECIMAL(10) NOT NULL Image Version
18 EX_MBL_NO_RECEIPTS Number(3,0) SMALLINT NOT NULL Nbr of Receipts
19 EX_LINE_STATUS Character(3) VARCHAR2(3) NOT NULL The Line Status of an Expenses transaction (i.e. Expense Report, Cash Advance, Travel Authorization, Time Report)
ADJ=Adjusted
APR=Approved
APY=Approved for Payment
CLS=Closed
DEN=Denied
DNA=Denied by Approver
DNC=Denied
DNU=Denied by Auditor
ESC=Escheated Payment
HDA=Hold by Approver
HDU=Hold by Auditor
HLD=Hold
MFS=Marked For Submit
OPN=Open
PAR=Approvals in Process
PD=Paid
PND=Pending
PRO=In Process
RAP=Approved
STG=Staged
SUB=Submitted
XML=Submitted, Pending Validation