CC_PAYCRE_AP_VW

(SQL View)
Index Back

ProCard AP-BU Payment

The sum of the (inclusive tax) payment amount for a specific AP business unit. (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 , C.BUSINESS_UNIT_AP , B.CURRENCY_CD , B.CURRENCY_CD_BASE , SUM(B.MERCHANDISE_AMT) , SUM(B.MERCH_AMT_BSE) FROM PS_CC_TRANS_LINE A , PS_CC_TRANS_DIST B , PS_BUS_UNIT_TBL_PM C WHERE A.INCLUDE_TAX = 'Y' 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 = '1' AND A.BUSINESS_UNIT = C.BUSINESS_UNIT GROUP BY A.CREDIT_CARD_VENDOR, A.BILLING_DATE, C.BUSINESS_UNIT_AP, B.CURRENCY_CD, B.CURRENCY_CD_BASE

# 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 MERCHANDISE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label
7 MERCH_AMT_BSE Signed Number(28,3) DECIMAL(26,3) NOT NULL Base Merchandise Amount