AP_S360_INV_VW

(SQL View)
Index Back

Invoices


SELECT b.oprid , a.business_unit , a.business_unit , a.voucher_id , a.invoice_id , a.invoice_dt , a.vendor_setid , a.vendor_id , a.gross_amt , a.txn_currency_cd , MIN(h.due_dt) , a.appr_status , a.match_status_vchr FROM PS_VOUCHER a , PS_sec_bu_opr b , PS_EM_BUY_REG_TBL c , PS_EM_HDRLINES_HVW H WHERE b.business_unit = c.BUSINESS_UNIT AND a.business_unit = c.business_unit AND a.business_unit = H.EM_business_unit AND a.voucher_id = H.voucher_id GROUP BY b.oprid, a.business_unit, a.voucher_id, a.invoice_id, a.invoice_dt, a.vendor_setid, a.vendor_id, a.gross_amt, a.txn_currency_cd, a.appr_status, a.match_status_vchr

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
2 EM_BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Buyer
3 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
4 VOUCHER_ID Character(8) VARCHAR2(8) NOT NULL Voucher ID
5 INVOICE_ID Character(30) VARCHAR2(30) NOT NULL Invoice Number
6 INVOICE_DT Date(10) DATE Invoice Date
7 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
8 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
9 GROSS_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Gross Invoice Amount
10 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency
11 DUE_DT Date(10) DATE Specifies the date that a transaction is due. It is a generic field used in multiple PeopleSoft applications including Receivables Payables and Purchasing. For example it represents the date that payment is due for a voucher or the date that a scheduled shipment is due to be received.
12 APPR_STATUS Character(1) VARCHAR2(1) NOT NULL Approval status flag used on appr_inst_log and derived records to track virtual approver status
A=Approved
D=Denied
P=Pending
13 MATCH_STATUS_VCHR Character(1) VARCHAR2(1) NOT NULL Match Status
C=Overridden - Credit Note
D=Match Dispute
E=Match Exceptions Exist
M=Matched
N=Not Applicable
O=Manually Overridden
T=To Be Matched