CUST_AGEDCR_VW

(SQL View)
Index Back

Cust Total Aged for Credit -OM


SELECT C.SETID , C.CUST_ID , %Round(SUM(BAL_AMT), 2) , B.CURRENCY_CD FROM PS_SET_CNTRL_REC A , PS_CUST_DATA B , PS_CUSTOMER C WHERE A.RECNAME = 'CUSTOMER' AND A.SETCNTRLVALUE = B.BUSINESS_UNIT AND A.SETID = C.SETID AND B.CUST_ID = C.CUST_ID GROUP BY C.SETID, C.CUST_ID, B.CURRENCY_CD

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 CUST_ID Character(15) VARCHAR2(15) NOT NULL Uniquely identifies an organizational entity that purchases goods or services from the enterprise. Represents the sold-to customer which is the customer organization that places orders. The CUST_ID may or may not be the same as the identifiers for the bill-to and ship-to locations.
3 TOTAL_AGED_AR Signed Number(28,3) DECIMAL(26,3) NOT NULL Total Aged AR
4 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code