CREDHIST_ACCOVW(SQL View) |
Index Back |
---|---|
Credit History |
SELECT A.BUSINESS_UNIT , A.ACCOUNT_NBR , A.ACCOUNT_TERM , A.EFFDT , A.AGE_CATEGORY , B.DESCRSHORT , SUM(AMOUNT) FROM PS_CREDIT_HISTORY A , PS_AGING_CAT_TBL B WHERE A.EXT_ORG_ID <> ' ' AND B.SETID = ( SELECT C.SETID FROM PS_SET_CNTRL_REC C WHERE C.SETCNTRLVALUE=A.BUSINESS_UNIT AND C.REC_GROUP_ID = 'AGING' AND C.RECNAME='AGING_CAT_TBL') AND A.AGING_SET = B.AGING_SET AND A.AGE_CATEGORY = B.AGE_CATEGORY AND B.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_AGING_CAT_TBL D WHERE D.SETID = B.SETID AND D.AGING_SET = B.AGING_SET AND D.EFFDT <= %CurrentDateIn) GROUP BY A.BUSINESS_UNIT, A.ACCOUNT_NBR, A.ACCOUNT_TERM, A.EFFDT, A.AGE_CATEGORY, B.DESCRSHORT |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | ACCOUNT_NBR | Character(10) | VARCHAR2(10) NOT NULL | Account Nbr |
3 | ACCOUNT_TERM | Character(4) | VARCHAR2(4) NOT NULL | Account Term |
4 | EFFDT | Date(10) | DATE |
Effective Date
Default Value: %date |
5 | AGE_CATEGORY | Character(2) | VARCHAR2(2) NOT NULL | Aging Category |
6 | DESCRSHORT | Character(10) | VARCHAR2(10) NOT NULL | Short Description |
7 | AMOUNT | Signed Number(20,3) | DECIMAL(18,3) NOT NULL | Commuting Allowance Paid Per Cycle. |