CREDIT_HIST_VW8

(SQL View)
Index Back

Credit History


SELECT A.BUSINESS_UNIT , A.EXT_ORG_ID , A.EFFDT , A.AGING_SET , A.AGE_CATEGORY , B.DESCR , SUM(AMOUNT) FROM PS_CREDIT_HISTORY A , PS_AGING_CAT_TBL B WHERE 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 A.EXT_ORG_ID > ' ' 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.EXT_ORG_ID, A.EFFDT, A.AGING_SET, A.AGE_CATEGORY, B.DESCR

  • Related Language Record: CREDITHISTVW8LN
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
    2 EXT_ORG_ID Character(11) VARCHAR2(11) NOT NULL External Org ID
    3 EFFDT Date(10) DATE Effective Date

    Default Value: %date

    4 AGING_SET Character(5) VARCHAR2(5) NOT NULL Aging Set
    5 AGE_CATEGORY Character(2) VARCHAR2(2) NOT NULL Aging Category
    6 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    7 AMOUNT Signed Number(20,3) DECIMAL(18,3) NOT NULL Commuting Allowance Paid Per Cycle.