PYMNT_EXP_VW3(SQL View) |
Index Back |
---|
SELECT a.remit_setid , a.remit_vendor , a.bank_setid , a.bank_cd , a.bank_acct_key , a.vndr_loc , a.business_unit ,a.remit_addr_seq_num , a.voucher_id , a.pymnt_cnt , c.invoice_id , c.invoice_dt , a.pymnt_gross_amt , c.txn_currency_cd , c.grp_ap_id , a.pymnt_method FROM ps_pymnt_vchr_xref a , PS_VOUCHER c , PS_VENDOR_PAY b WHERE a.business_unit=c.business_unit AND a.voucher_id=c.voucher_id AND a.pymnt_method IN ('CHK' ,'EFT' ,'ACH', 'GE', 'BOO', 'BEF') AND a.pymnt_hold='N' AND a.pymnt_hold_wthd='N' AND a.pymnt_selct_status='N' AND ( a.NET_SELCT_STATUS IN ('N', ' ') OR a.NET_TXN_STATUS IN ('B', 'N') ) AND c.entry_status = 'P' AND c.appr_status = 'A' AND c.process_man_close = 'N' AND ( c.match_status_vchr IN ('M', 'N', 'O') OR (c.match_status_vchr IN ('T', 'E') AND c.UNMTCH_PAY_FLG = 'Y')) AND c.BUDGET_HDR_STATUS = 'V' AND c.BUDGET_MISC_STATUS = 'V' AND c.DOC_TOL_HDR_STATUS = 'V' AND C.VCHR_LINE_APPR <> '2' AND a.remit_setid = b.setid AND a.remit_vendor = b.vendor_id AND a.vndr_loc = b.vndr_loc AND b.SEQ_NUM = 1 AND B.EFF_STATUS = 'A' AND b.PYMNT_HOLD = 'N' AND b.EFFDT = ( SELECT MAX(B1.EFFDT) FROM PS_VENDOR_PAY B1 WHERE B1.EFFDT <= %CurrentDateIn AND b1.SETID = B.SETID AND b1.VENDOR_ID = B.VENDOR_ID AND b1.VNDR_LOC = B.VNDR_LOC AND b1.SEQ_NUM = 1 AND B1.EFF_STATUS = 'A' AND b1.PYMNT_HOLD = 'N') |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | REMIT_SETID | Character(5) | VARCHAR2(5) NOT NULL | Remit SetID |
2 | REMIT_VENDOR | Character(10) | VARCHAR2(10) NOT NULL | Remit Vendor |
3 | BANK_SETID | Character(5) | VARCHAR2(5) NOT NULL | The PeopleSoft tableset ID associated with a given bank/counterparty. |
4 | BANK_CD | Character(5) | VARCHAR2(5) NOT NULL | Bank Code |
5 | 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 |
6 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
7 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
8 | REMIT_ADDR_SEQ_NUM | Number(5,0) | INTEGER NOT NULL | Remitting Location |
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 | PYMNT_GROSS_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Gross Payment Amount |
14 | TXN_CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Transaction Currency |
15 | GRP_AP_ID | Character(10) | VARCHAR2(10) NOT NULL | Control Group ID |
16 | 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 |