REFUND_WRK_VW(SQL View) |
Index Back |
---|---|
Refund Work record |
SELECT A.BUSINESS_UNIT ,A.COMMON_ID ,A.SA_ID_TYPE ,A.EMPLID ,A.REFUND_EMPLID ,A.REFUND_EXT_ORG_ID ,A.ACCOUNT_NBR ,A.ACCOUNT_TERM ,A.ITEM_NBR ,A.ITEM_TERM ,B.DESCR ,A.ITEM_AMT ,A.ITEM_BALANCE ,A.APPLIED_AMT ,B.ITEM_TYPE_CD ,A.PAYMENT_ID_NBR ,E.DESCRSHORT ,A.ITEM_TYPE ,B.TAXABLE_Y_N ,B.ERNCD ,B.ERNCD_NOTAX ,A.ACCOUNT_TYPE_SF ,A.CURRENCY_CD ,B.TENDER_CATEGORY ,A.SF_PMT_REF_NBR ,B.ENCUMBRANCE_DAYS FROM PS_ITEM_SF A ,PS_ITEM_TYPE_TBL B ,PS_BUS_UNIT_TBL_SF C ,PS_TERM_VAL_TBL E WHERE A.BUSINESS_UNIT = C.BUSINESS_UNIT AND E.STRM = A.ITEM_TERM AND A.ITEM_TYPE = B.ITEM_TYPE AND B.REFUNDABLE_IND = 'Y' AND B.SETID = ( SELECT D.SETID FROM PS_SET_CNTRL_REC D WHERE D.RECNAME = 'ITEM_TYPE_TBL' AND D.SETCNTRLVALUE = C.INSTITUTION) AND B.EFFDT = ( SELECT MAX(EFFDT) FROM PS_ITEM_TYPE_TBL Y WHERE Y.SETID = B.SETID AND Y.ITEM_TYPE=B.ITEM_TYPE AND Y.EFFDT <= %CurrentDateIn) AND B.EFF_STATUS = 'A' AND B.ITEM_TYPE_CD IN ('D','F','L','P','W') AND A.ITEM_BALANCE < 0 |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | BUSINESS_UNIT | Character(5) | VARCHAR2(5) NOT NULL | Business Unit |
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 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
5 | REFUND_EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Refund ID |
6 | REFUND_EXT_ORG_ID | Character(11) | VARCHAR2(11) NOT NULL | Refund External Org ID |
7 | ACCOUNT_NBR | Character(10) | VARCHAR2(10) NOT NULL | Account Nbr |
8 | ACCOUNT_TERM | Character(4) | VARCHAR2(4) NOT NULL | Account Term |
9 | ITEM_NBR | Character(15) | VARCHAR2(15) NOT NULL | Item Nbr |
10 | ITEM_TERM | Character(4) | VARCHAR2(4) NOT NULL | Item Term |
11 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
12 | ITEM_AMT | Signed Number(18,2) | DECIMAL(16,2) NOT NULL | Item Amount |
13 | ITEM_BALANCE | Signed Number(18,2) | DECIMAL(16,2) NOT NULL | Item Balance |
14 | APPLIED_AMT | Signed Number(18,2) | DECIMAL(16,2) NOT NULL | Applied Amount |
15 | 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 |
16 | PAYMENT_ID_NBR | Number(12,0) | DECIMAL(12) NOT NULL | Payment ID Nbr |
17 | TERM_DESCR | Character(10) | VARCHAR2(10) NOT NULL | Term Descr |
18 | ITEM_TYPE | Character(12) | VARCHAR2(12) NOT NULL | Item Type |
19 | TAXABLE_Y_N | Character(1) | VARCHAR2(1) NOT NULL | Taxable |
20 | ERNCD | Character(3) | VARCHAR2(3) NOT NULL | Earnings Code |
21 | ERNCD_NOTAX | Character(3) | VARCHAR2(3) NOT NULL | Earnings Code Non Taxable |
22 | ACCOUNT_TYPE_SF | Character(3) | VARCHAR2(3) NOT NULL | Account Type |
23 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
24 | TENDER_CATEGORY | Character(3) | VARCHAR2(3) NOT NULL |
Tender Category
CC=Credit Card CCI=Credit Card In CCO=Credit Card Out CK=Check CKI=Check In CKO=Check Out CS=Cash CSI=Cash In CSO=Cash Out DB=Debit Card DBI=Debit Card In DBO=Debit Card Out DD=Direct Deposit DDI=Direct Debit DDO=Direct Deposit EC=Electronic Check TP=Third Party Check TPI=Third Party Check In WIR=Wire Transfer |
25 | SF_PMT_REF_NBR | Character(12) | VARCHAR2(12) NOT NULL | Reference Nbr |
26 | ENCUMBRANCE_DAYS | Number(3,0) | SMALLINT NOT NULL | Days to Encumber |