AV_PLDG_O_VW

(SQL View)
Index Back

Posted Pledge Detail

Returns all non adjustment pledges that have been posted. Used as a prompt for Pledge No on AV_ADJ_PLEDGE

SELECT DISTINCT A.BUSINESS_UNIT ,C.DESCR , A.EXT_ORG_ID , A.GIFT_NO , A.PLDG_EFFDT , A.GIFT_AMT , A.DATA_ENTRY_DT , A.CURRENCY_CD , A.PLEDGE_PMT_RCVD , A.LAST_PMT_DT , A.FULF_DT , A.PMT_SCHD , A.INSTITUTION FROM PS_AV_PLEDGE_DTL A , PS_AV_SESSION_TBL B , PS_EXT_ORG_TBL C WHERE A.SESSION_NO = B.SESSION_NO AND B.SESS_STATUS = 'P' AND A.INSTITUTION = B.INSTITUTION AND A.ADJUSTMENT_FLG = 'N' AND A.EXT_ORG_ID=C.EXT_ORG_ID AND %EffdtCheck(EXT_ORG_TBL C1, C, A.DATA_ENTRY_DT) AND NOT EXISTS( SELECT 'X' FROM PS_AV_PLEDGE_DTL X , PS_AV_GIFT_DTL G , PS_AV_SESSION_TBL J WHERE X.BUSINESS_UNIT = A.BUSINESS_UNIT AND X.SESSION_NO = A.SESSION_NO AND X.GIFT_NO = A.GIFT_NO AND X.BUSINESS_UNIT = G.BUSINESS_UNIT AND X.GIFT_NO = G.PLEDGE_GIFT_NO AND G.SEQ_NO = ( SELECT MAX(G1.SEQ_NO) FROM PS_AV_GIFT_DTL G1 WHERE G1.BUSINESS_UNIT = G.BUSINESS_UNIT AND G1.SESSION_NO = G.SESSION_NO AND G1.GIFT_NO = G.GIFT_NO) AND X.BUSINESS_UNIT = J.BUSINESS_UNIT AND G.SESSION_NO = J.SESSION_NO AND J.SESS_STATUS <> 'P' )

  • Parent record: AV_SESSION_TBL
  • # PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
    1 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
    2 NAME Character(50) VARCHAR2(50) NOT NULL Name
    3 EXT_ORG_ID Character(11) VARCHAR2(11) NOT NULL External Org ID

    Prompt Table: EXT_ORG_TBL

    4 PLEDGE_GIFT_NO Character(11) VARCHAR2(11) NOT NULL Pledge Number
    5 PLDG_EFFDT Date(10) DATE Effective Date
    6 GIFT_AMT Signed Number(17,2) DECIMAL(15,2) NOT NULL Gift Amount
    7 DATA_ENTRY_DT Date(10) DATE NOT NULL Data Entry Date

    Default Value: %date

    8 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code

    Prompt Table: CURRENCY_CD_TBL

    9 PLEDGE_PMT_RCVD Number(16,2) DECIMAL(15,2) NOT NULL Payments Received
    10 LAST_PMT_DT Date(10) DATE Last Payment Date
    11 FULF_DT Date(10) DATE NOT NULL Fulfillment Date

    Default Value: %date

    12 PMT_SCHD Character(2) VARCHAR2(2) NOT NULL Payment Schedule
    A=Annual
    BM=Bi-Monthly
    I=Irregular
    M=Monthly
    Q=Quarterly
    SA=Semi-Annually
    W=Weekly
    13 INSTITUTION Character(5) VARCHAR2(5) NOT NULL Academic Institution

    Prompt Table: INSTITUTN_SCRTY