WRITEOF_ITEM_VW

(SQL View)
Index Back

Wirteoff Item VW


SELECT A.BUSINESS_UNIT ,A.COMMON_ID ,A.SA_ID_TYPE ,A.PAYMENT_ID_NBR ,A.EMPLID ,A.EXT_ORG_ID ,A.STRM ,G.DESCRSHORT ,A.ITEM_TYPE ,A.PAYMENT_AMT ,B.ITEM_TYPE_CD ,C.DESCR ,A.POSTED_DATE ,A.SF_REVERSAL_IND ,B.REF1_DESCR ,A.CURRENCY_CD ,SUM(B.ITEM_BALANCE) FROM PS_PAYMENT_TBL A ,PS_ITEM_SF B ,PS_ITEM_TYPE_TBL C ,PS_BUS_UNIT_TBL_SF D ,PS_TERM_VAL_TBL G WHERE A.BUSINESS_UNIT=B.BUSINESS_UNIT AND A.COMMON_ID = B.COMMON_ID AND A.SA_ID_TYPE = B.SA_ID_TYPE AND A.PAYMENT_ID_NBR=B.PAYMENT_ID_NBR AND A.BUSINESS_UNIT=D.BUSINESS_UNIT AND A.STRM=G.STRM AND C.SETID=( SELECT E.SETID FROM PS_SET_CNTRL_REC E WHERE E.SETCNTRLVALUE=D.INSTITUTION AND E.RECNAME='ITEM_TYPE_TBL') AND A.ITEM_TYPE=C.ITEM_TYPE AND C.EFFDT=( SELECT MAX(F.EFFDT) FROM PS_ITEM_TYPE_TBL F WHERE C.SETID=F.SETID AND C.ITEM_TYPE=F.ITEM_TYPE AND F.EFFDT <= %CurrentDateIn AND F.EFF_STATUS='A') GROUP BY A.BUSINESS_UNIT ,A.COMMON_ID ,A.SA_ID_TYPE ,A.PAYMENT_ID_NBR ,A.EMPLID ,A.EXT_ORG_ID ,A.STRM ,G.DESCRSHORT ,A.ITEM_TYPE ,A.PAYMENT_AMT ,B.ITEM_TYPE_CD ,C.DESCR ,A.POSTED_DATE ,A.SF_REVERSAL_IND ,B.REF1_DESCR ,A.CURRENCY_CD

  • Related Language Record: WRITEOFITEMVWLN
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit

    Default Value: OPR_DEF_TBL_CS.BUSINESS_UNIT

    Prompt Table: SP_BU_SF_NONVW

    2 COMMON_ID Character(11) VARCHAR2(11) NOT NULL Common ID to store Personal ID / Ext Org ID value
    3 SA_ID_TYPE Character(1) VARCHAR2(1) NOT NULL ID Type
    O=Organization
    P=Person
    4 PAYMENT_ID_NBR Number(12,0) DECIMAL(12) NOT NULL Payment ID Nbr
    5 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

    Prompt Table: PEOPLE_SRCH

    6 EXT_ORG_ID Character(11) VARCHAR2(11) NOT NULL External Org ID

    Prompt Table: EXT_ORG_SRCH

    7 STRM Character(4) VARCHAR2(4) NOT NULL Term
    8 DESCRSHORT Character(10) VARCHAR2(10) NOT NULL Short Description
    9 ITEM_TYPE Character(12) VARCHAR2(12) NOT NULL Item Type
    10 PAYMENT_AMT Number(19,3) DECIMAL(18,3) NOT NULL Payment Amount
    11 ITEM_TYPE_CD Character(1) VARCHAR2(1) NOT NULL Item Type Code
    A=Application Fee
    B=Billing Only
    C=Charge
    D=Deposit
    F=Financial Aid
    G=GL Interface Only
    H=Withholding
    I=Interest
    L=Pre-Paid Tuition
    P=Payment
    R=Refund
    T=Transfers
    V=Contributor Relations
    W=Waiver
    X=Write-off
    Z=Pay Plan Credit
    12 DESCR Character(30) VARCHAR2(30) NOT NULL Description
    13 POSTED_DATE Date(10) DATE Date Posted
    14 SF_REVERSAL_IND Character(1) VARCHAR2(1) NOT NULL Reversal Indicator
    15 REF1_DESCR Character(30) VARCHAR2(30) NOT NULL Reference Nbr
    16 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
    17 BALANCE_AMT Signed Number(18,2) DECIMAL(16,2) NOT NULL Charge Balance