AP_DB_VCHLST_VW(SQL View) |
Index Back |
---|
SELECT DISTINCT A.SETID , A.VENDOR_ID , A.VNDR_LOC , A.BUSINESS_UNIT , A.VOUCHER_ID , A.INVOICE_DT , B.PYMNT_TERMS_CD , B.DUE_DT , C.SCHEDULED_PAY_DT , B.DSCNT_DUE_DT , A.GROSS_AMT - A.PREPAID_AMT , A.TXN_CURRENCY_CD FROM PS_AP_DB_VCHAMT_VW A , PS_VOUCHER B , PS_PYMNT_VCHR_XREF C WHERE A.BUSINESS_UNIT = B.BUSINESS_UNIT AND A.VOUCHER_ID = B.VOUCHER_ID AND C.BUSINESS_UNIT = A.BUSINESS_UNIT AND C.VOUCHER_ID = A.VOUCHER_ID AND C.SCHEDULED_PAY_DT = ( SELECT MIN(D.SCHEDULED_PAY_DT) FROM PS_PYMNT_VCHR_XREF D WHERE A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.VOUCHER_ID = D.VOUCHER_ID) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
3 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
4 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
5 | VOUCHER_ID | Character(8) | VARCHAR2(8) NOT NULL | Voucher ID |
6 | INVOICE_DT | Date(10) | DATE | Invoice Date |
7 | PYMNT_TERMS_CD | Character(5) | VARCHAR2(5) NOT NULL | Specifies how the payment due date and discount due date are calculated. A payment terms code is associated with various business units bill-to customers vendors as well as sales orders purchase orders and vouchers. |
8 | 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. |
9 | SCHEDULED_PAY_DT | Date(10) | DATE | Scheduled to Pay |
10 | DSCNT_DUE_DT | Date(10) | DATE | Discount Due Date |
11 | NET_BALANCE_AP | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Work field to hold Payable Balance Amount in the Manual Adjustment panels. |
12 | TXN_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Transaction Currency |