CC_PAYPOS_VW1X

(SQL View)
Index Back

ProCard BU Paid

The sum of the (inclusive tax) purchase amount for a specific business unit. Tax paid. (Inclusive) Bank statement combines the purchase amount and the tax amount in one field (merchandise_amt). Total billing amount is actually the same as the merchandise amount.

SELECT A.CREDIT_CARD_VENDOR , A.BILLING_DATE , A.BUSINESS_UNIT , B.CURRENCY_CD , B.CURRENCY_CD_BASE , B.PROCARD_PYMNT_ID , C.BANK_CD , C.BANK_ACCT_KEY , SUM(B.MERCHANDISE_AMT+ B.USETAX_PAID + B.SALETX_PAID ) , SUM(B.MERCH_AMT_BSE + B.USETAX_PAID_BSE + B.SALETX_PAID_BSE) FROM PS_CC_TRANS_LINE A , PS_CC_TRANS_DIST B , PS_CC_PAYMENT C WHERE A.INCLUDE_TAX = 'N' AND A.CC_STATUS <> '4' AND A.EMPLID = B.EMPLID AND A.CREDIT_CARD_VENDOR = B.CREDIT_CARD_VENDOR AND A.CRDMEM_ACCT_NBR = B.CRDMEM_ACCT_NBR AND A.TRANS_NBR = B.TRANS_NBR AND A.TRANS_DT = B.TRANS_DT AND A.DTTM_STAMP = B.DTTM_STAMP AND B.CC_POST_STATUS = '2' AND C.BILLING_DATE = A.BILLING_DATE AND C.PROCARD_PYMNT_ID = B.PROCARD_PYMNT_ID AND C.PYMNT_ID <> ' ' GROUP BY A.CREDIT_CARD_VENDOR, A.BILLING_DATE, A.BUSINESS_UNIT, B.CURRENCY_CD, B.CURRENCY_CD_BASE, B.PROCARD_PYMNT_ID, C.BANK_CD, C.BANK_ACCT_KEY

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 CREDIT_CARD_VENDOR Character(5) VARCHAR2(5) NOT NULL Corporate Card Vendor
2 BILLING_DATE Date(10) DATE Billing Date
3 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
4 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
5 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
6 PROCARD_PYMNT_ID Character(10) VARCHAR2(10) NOT NULL Procard Payment ID
7 BANK_CD Character(5) VARCHAR2(5) NOT NULL Bank Code
8 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
9 MERCHANDISE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label
10 MERCH_AMT_BSE Signed Number(28,3) DECIMAL(26,3) NOT NULL Base Merchandise Amount