CREDHIST_ACCTVW

(SQL View)
Index Back

Credit History


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

  • Related Language Record: CRDHISTACCTVWLN
  • # 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 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID
    5 EFFDT Date(10) DATE Effective Date

    Default Value: %date

    6 AGING_SET Character(5) VARCHAR2(5) NOT NULL Aging Set
    7 AGE_CATEGORY Character(2) VARCHAR2(2) NOT NULL Aging Category
    8 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    9 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description
    10 AMOUNT Signed Number(20,3) DECIMAL(18,3) NOT NULL Commuting Allowance Paid Per Cycle.
    11 LAST_DTTM_UPDATE DateTime(26) TIMESTAMP Specifies the date and time of the last update to an entry. This field is maintained by PeopleSoft and is used in a variety of contexts.