CC_AMTB_VW

(SQL View)
Index Back

ProCard Liability - ALL X

Total Billing amount for all business units (plus exclusived tax). (Exclusive) Bank statement tracks the purchase amount and the tax amount in separate fields. Total billing amount is the sum of the purchase amount and tax amount.

SELECT A.BUSINESS_UNIT , A.CREDIT_CARD_VENDOR , B.CC_POST_STATUS , A.BILLING_DATE , 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 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 GROUP BY A.BUSINESS_UNIT, A.CREDIT_CARD_VENDOR, B.CC_POST_STATUS, A.BILLING_DATE, B.CURRENCY_CD, B.CURRENCY_CD_BASE

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
2 CREDIT_CARD_VENDOR Character(5) VARCHAR2(5) NOT NULL Corporate Card Vendor
3 CC_POST_STATUS Character(1) VARCHAR2(1) NOT NULL Post and Payment Status
0=Not Processed
1=Initial Posted
2=Payment Created
3=Payment Posted
4=Final Posted
5=PO Posted
6=Voucher Build Error
4 BILLING_DATE Date(10) DATE Billing Date
5 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
6 CURRENCY_CD_BASE Character(3) VARCHAR2(3) NOT NULL Business Unit Base Currency
7 MERCHANDISE_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amt F_KDHIL_R87H8 062804 MLM: Added new Line Amount Received Label
8 MERCH_AMT_BSE Signed Number(28,3) DECIMAL(26,3) NOT NULL Base Merchandise Amount