ITEM_DUE_DT_VW(SQL View) |
Index Back |
---|---|
Item Due Date (SF) View |
SELECT A.BUSINESS_UNIT ,A.COMMON_ID ,A.COMMON_ID ,A.ACCOUNT_NBR ,A.ACCOUNT_TERM ,A.ITEM_NBR ,A.ITEM_TERM ,A.ITEM_BALANCE ,A.APPLIED_AMT ,A.ITEM_TYPE_CD ,A.ITEM_TYPE ,B.DESCR ,D.DUE_DT ,A.ITEM_STATUS ,SUM(D.line_AMT) ,0 ,0 ,A.REFUND_EMPLID ,A.REF1_DESCR ,A.PAYMENT_ID_NBR ,A.BILLING_DT ,A.SSF_INSTMNT_ID ,A.REFUND_NBR FROM PS_ITEM_SF A ,PS_ITEM_TYPE_TBL B ,PS_BUS_UNIT_TBL_SF C ,PS_ITEM_LINE_SF D WHERE A.BUSINESS_UNIT=C.BUSINESS_UNIT AND A.ITEM_TYPE=B.ITEM_TYPE AND A.BUSINESS_UNIT = D.BUSINESS_UNIT AND A.COMMON_ID = D.COMMON_ID AND A.SA_ID_TYPE = D.SA_ID_TYPE AND A.ITEM_NBR = D.ITEM_NBR AND A.SA_ID_TYPE = 'P' 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 Y.EFF_STATUS = 'A') AND (A.ITEM_TYPE_CD = 'C' OR A.ITEM_TYPE_CD = 'B' OR A.ITEM_TYPE_CD = 'H' OR A.ITEM_TYPE_CD = 'A' OR A.ITEM_TYPE_CD = 'I' OR A.ITEM_TYPE_CD = 'T' ) GROUP BY A.BUSINESS_UNIT ,A.COMMON_ID ,A.COMMON_ID ,A.ACCOUNT_NBR ,A.ACCOUNT_TERM ,A.ITEM_NBR ,A.ITEM_TERM ,A.ITEM_BALANCE ,A.APPLIED_AMT ,A.ITEM_TYPE_CD ,A.ITEM_TYPE ,B.DESCR ,D.DUE_DT ,A.REFUND_EMPLID ,A.ITEM_STATUS ,A.REF1_DESCR ,A.PAYMENT_ID_NBR, A.BILLING_DT, A.SSF_INSTMNT_ID, A.REFUND_NBR |
# | 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 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
4 | ACCOUNT_NBR | Character(10) | VARCHAR2(10) NOT NULL | Account Nbr |
5 | ACCOUNT_TERM | Character(4) | VARCHAR2(4) NOT NULL | Account Term |
6 | ITEM_NBR | Character(15) | VARCHAR2(15) NOT NULL | Item Nbr |
7 | STRM | Character(4) | VARCHAR2(4) NOT NULL | Term |
8 | BALANCE_AMT | Signed Number(18,2) | DECIMAL(16,2) NOT NULL | Charge Balance |
9 | APPLIED_AMT | Signed Number(18,2) | DECIMAL(16,2) NOT NULL | Applied Amount |
10 | 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 |
11 | ITEM_TYPE | Character(12) | VARCHAR2(12) NOT NULL | Item Type |
12 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
13 | DUE_DT | Date(10) | DATE | Due Date |
14 | ITEM_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Item Status
A=Active C=Completed I=Initiated N=Notified O=Ordered P=Paid Off R=Received S=Second Notification T=Returned W=Waived X=Cancelled |
15 | ITEM_AMT | Signed Number(18,2) | DECIMAL(16,2) NOT NULL | Item Amount |
16 | PAYMENT_AMT | Number(19,3) | DECIMAL(18,3) NOT NULL | Payment Amount |
17 | REFUND_AMT | Signed Number(18,2) | DECIMAL(16,2) NOT NULL | Refund Amount |
18 | REFUND_EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Refund ID |
19 | REF1_DESCR | Character(30) | VARCHAR2(30) NOT NULL | Reference Nbr |
20 | PAYMENT_ID_NBR | Number(12,0) | DECIMAL(12) NOT NULL | Payment ID Nbr |
21 | BILLING_DT | Date(10) | DATE | Billing Date |
22 | SSF_INSTMNT_ID | Number(3,0) | SMALLINT NOT NULL | Installment ID |
23 | REFUND_NBR | Number(12,0) | DECIMAL(12) NOT NULL | Refund Nbr |