PYFRCST_DSCT_VW

(SQL View)
Index Back

SELECT a.business_unit , a.bank_setid , a.bank_cd , a.bank_acct_key , b.vendor_setid , b.vendor_id , a.pymnt_method , a.scheduled_pay_dt , a.voucher_id , a.pymnt_cnt , b.invoice_id , b.invoice_dt , b.txn_currency_cd , a.pymnt_gross_amt - a.dscnt_pay_amt , a.currency_pymnt FROM ps_pymnt_vchr_xref a , PS_VOUCHER b , ps_vendor_pay c WHERE a.business_unit = b.business_unit AND a.voucher_id = b.voucher_id AND a.pymnt_hold = 'N' AND a.pymnt_hold_wthd = 'N' AND a.pymnt_selct_status = 'N' AND b.appr_status = 'A' AND b.entry_status = 'P' AND b.vendor_setid = c.setid AND b.vendor_id = c.vendor_id AND b.vndr_loc = c.vndr_loc AND (a.scheduled_pay_dt <= a.dscnt_due_dt OR c.dscnt_always_flg = 'Y') AND c.effdt = ( SELECT MAX(effdt) FROM ps_vendor_pay WHERE setid = b.vendor_setid AND vendor_id = b.vendor_id AND vndr_loc = b.vndr_loc AND effdt <= a.scheduled_pay_dt AND eff_status = 'A')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 BANK_SETID Character(5) VARCHAR2(5) NOT NULL The PeopleSoft tableset ID associated with a given bank/counterparty.
3 BANK_CD Character(5) VARCHAR2(5) NOT NULL Bank Code
4 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
5 VENDOR_SETID Character(5) VARCHAR2(5) NOT NULL Vendor SetID
6 VENDOR_ID Character(10) VARCHAR2(10) NOT NULL Vendor Identifier
7 PYMNT_METHOD Character(3) VARCHAR2(3) NOT NULL Payment Method
ACH=Automated Clearing House
BEF=Draft - Customer EFT
BOO=Draft - Customer Initiated
CHK=System Check
D=Deposit
DD=Direct Debit
DFT=Draft - Supplier Initiated
DRA=Draft
EFT=Electronic Funds Transfer
GE=Giro - EFT
GM=Giro - Manual
LC=Letter of Credit
MAN=Manual Check
TRW=Treasury Wire
WIR=Wire Transfer
8 SCHEDULED_PAY_DT Date(10) DATE Scheduled to Pay
9 VOUCHER_ID Character(8) VARCHAR2(8) NOT NULL Voucher ID
10 PYMNT_CNT Number(5,0) INTEGER NOT NULL Payments
11 INVOICE_ID Character(30) VARCHAR2(30) NOT NULL Invoice Number
12 INVOICE_DT Date(10) DATE Invoice Date
13 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency
14 PYMNT_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Payment Amount
15 CURRENCY_PYMNT Character(3) VARCHAR2(3) NOT NULL Payment Currency