CUST_AGE_CP_VW(SQL View) |
Index Back |
---|---|
Customer Aging by Crspd Cust |
SELECT C.CRSPD_SETID , C.CRSPD_CUST_ID , A.AGING_ID , A.AGING_CATEGORY , A.BUSINESS_UNIT , A.AGING_AMT , A.AGING_CNT , A.CURRENCY_CD FROM PS_CUSTOMER C , PS_CUST_AGING A , PS_BUS_UNIT_OPT_AR O WHERE C.CUST_ID = A.CUST_ID AND C.SETID = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = A.BUSINESS_UNIT AND RECNAME = 'CUSTOMER') AND O.SETID = ( SELECT SETID FROM PS_SET_CNTRL_REC WHERE SETCNTRLVALUE = A.BUSINESS_UNIT AND RECNAME = 'BUS_UNIT_OPT_AR') AND A.AGING_ID = O.AGING_ID |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | CRSPD_SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | CRSPD_CUST_ID | Character(15) | VARCHAR2(15) NOT NULL | Correspondence Customer |
3 | AGING_ID | Character(5) | VARCHAR2(5) NOT NULL | Aging ID |
4 | AGING_CATEGORY | Character(2) | VARCHAR2(2) NOT NULL | Aging Category |
5 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
6 | AGING_AMT | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Aging Amount |
7 | AGING_CNT | Number(6,0) | INTEGER NOT NULL | Aging Count |
8 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |