AV_GIFT_P2_VW(SQL View) |
Index Back |
---|---|
Posted / Non Adjusted Gift VWView which returns org gifts that have been posted, and have not been adjusted. Used on the adjust gift window as a prompt for GIFT_NO ========================================================= JM - Changed view on 01/27/00. Old view is below. Added an additional condition to the where clause. In addition to what was in the where clause a test was added to make sure that we're only grabbing the records where the av_sess_type is = 'G' or 'AG'. SELECT DISTINCT C.DESCR, A.EXT_ORG_ID, A.GIFT_NO, A.GIFT_AMT, A.GIFT_TYPE, A.GIFT_DT FROM PS_AV_GIFT_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.ADJUSTMENT_FLG = 'N' AND A.EXT_ORG_ID=C.EXT_ORG_ID AND A.SA_ID_TYPE='O' ========================================================= |
SELECT DISTINCT A.BUSINESS_UNIT ,A.CURRENCY_CD_ENTRY ,C.DESCR , A.EXT_ORG_ID , A.GIFT_NO , A.GIFT_AMT , A.GIFT_TYPE , A.GIFT_DT FROM PS_AV_GIFT_DTL A , PS_AV_SESSION_TBL B , PS_EXT_ORG_TBL C WHERE A.SESSION_NO = B.SESSION_NO AND B.AV_SESS_TYPE IN('G','AG') AND B.SESS_STATUS = 'P' AND A.ADJUSTMENT_FLG = 'N' AND A.EXT_ORG_ID=C.EXT_ORG_ID AND A.SA_ID_TYPE='O' AND %EffdtCheck(EXT_ORG_TBL C1, C, A.DATA_ENTRY_DT) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
2 | CURRENCY_CD_ENTRY | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
3 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
4 | EXT_ORG_ID | Character(11) | VARCHAR2(11) NOT NULL |
External Org ID
Prompt Table: EXT_ORG_TBL |
5 | GIFT_NO | Character(11) | VARCHAR2(11) NOT NULL | Gift Nbr |
6 | GIFT_AMT | Signed Number(17,2) | DECIMAL(15,2) NOT NULL | Gift Amount |
7 | GIFT_TYPE | Character(6) | VARCHAR2(6) NOT NULL |
Gift Type
Prompt Table: AV_GFT_TYPE_TBL |
8 | GIFT_DT | Date(10) | DATE | Gift Date |