AP_REG_VCHR_VW

(SQL View)
Index Back

SELECT C.SETID , C.VENDOR_ID , C.VENDOR_NAME_SHORT , A.BUSINESS_UNIT , 'REG' , A.TXN_CURRENCY_CD , SUM(B.PYMNT_GROSS_AMT) , 0 , 0 , B.VNDR_LOC FROM PS_VOUCHER A , PS_PYMNT_VCHR_XREF B , PS_VENDOR C WHERE A.VOUCHER_STYLE NOT IN ('PPAY', 'TMPL') AND (A.PROCESS_MAN_CLOSE = 'N' OR A.CLOSE_STATUS <> 'C') AND A.VENDOR_SETID = C.SETID AND A.VENDOR_ID = C.VENDOR_ID AND A.VOUCHER_ID = B.VOUCHER_ID AND A.BUSINESS_UNIT = B.BUSINESS_UNIT AND B.PYMNT_SELCT_STATUS NOT IN ('P', 'X', 'S') AND (B.NET_SELCT_STATUS <> 'S' OR B.NET_TXN_STATUS <> 'N') AND CASE WHEN A.ENTRY_STATUS <> 'X' THEN CASE WHEN B.DUE_DT IS NULL THEN 1 ELSE 2 END ELSE 0 END > 0 GROUP BY C.SETID, C.VENDOR_ID , C.VENDOR_NAME_SHORT, A.BUSINESS_UNIT, A.TXN_CURRENCY_CD , B.PYMNT_HOLD, B.VNDR_LOC

  • Related Language Record: AP_REG_VCHR_LVW
  • # 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 VENDOR_NAME_SHORT Character(14) VARCHAR2(14) NOT NULL Short Vendor Name
    4 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
    5 VOUCHER_STYLE Character(4) VARCHAR2(4) NOT NULL Voucher Style
    ADJ=Adjustments
    AMR=Amortization Voucher
    CLBK=Claim Voucher
    CORR=Reversal Voucher
    JRNL=Journal Voucher
    PPAY=Prepaid Voucher
    REG=Regular Voucher
    RGTR=Register Voucher
    SGLP=Single Payment Voucher
    THRD=Third Party Voucher
    TMPL=Template Voucher
    6 TXN_CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Transaction Currency
    7 GROSS_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Gross Invoice Amount
    8 PREPAID_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Prepaid Amount
    9 NET_BALANCE_AP Signed Number(28,3) DECIMAL(26,3) NOT NULL Work field to hold Payable Balance Amount in the Manual Adjustment panels.
    10 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location