PMT_INQ_SH_V3LG(SQL View) |
Index Back |
---|---|
Payments keyed by Supplier |
SELECT a.remit_setid , a.remit_vendor , a.emplid , a.bank_setid , a.bank_cd , a.bank_acct_key , a.pymnt_method , a.pymnt_id_ref , d.language_cd , BNK.DESCR FROM (ps_payment_tbl a LEFT OUTER JOIN PSXLATITEM C ON c.fieldname = 'STL_THROUGH' AND c.fieldvalue = A.STL_THROUGH) , PS_BANK_CD_LNG BNK , PS_VENDOR_ADDR_LNG d , ps_vendor_lang v WHERE a.pymnt_status <> 'X' AND BNK.SETID = a.BANK_SETID AND BNK.BANK_CD = a.BANK_CD AND d.setid = a.remit_setid AND d.vendor_id = a.remit_vendor AND d.address_seq_num = ( SELECT MAX(b.remit_addr_seq_num) FROM ps_pymnt_vchr_xref b WHERE b.remit_setid = a.remit_setid AND b.remit_vendor = a.remit_vendor AND b.vndr_loc = a.vndr_loc AND b.bank_setid = a.bank_setid AND b.bank_cd = a.bank_cd AND b.bank_acct_key = a.bank_acct_key AND b.pymnt_id = a.pymnt_id) AND d.effdt = ( SELECT MAX(i.effdt) FROM PS_VENDOR_ADDR_LNG i WHERE i.setid = a.remit_setid AND i.vendor_id = a.remit_vendor AND i.address_seq_num = d.address_seq_num AND i.effdt <= a.creation_dt) AND v.setid = a.remit_setid AND v.vendor_id = a.remit_vendor |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | REMIT_SETID | Character(5) | VARCHAR2(5) NOT NULL |
Remit SetID
Prompt Table: SP_SETRMT_NONVW |
2 | REMIT_VENDOR | Character(10) | VARCHAR2(10) NOT NULL | Remit Vendor |
3 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
4 | BANK_SETID | Character(5) | VARCHAR2(5) NOT NULL |
The PeopleSoft tableset ID associated with a given bank/counterparty.
Default Value: OPR_BANK_VW_AP.BANK_SETID |
5 | BANK_CD | Character(5) | VARCHAR2(5) NOT NULL |
Bank Code
Prompt Table: BANK_CD_TBL |
6 | 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 |
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 | PYMNT_ID_REF | Character(20) | VARCHAR2(20) NOT NULL | Payment Reference |
9 | LANGUAGE_CD | Character(3) | VARCHAR2(3) NOT NULL | Language Code |
10 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |