PMT_ITEM_VW(SQL View) |
Index Back |
---|---|
Payment Item VW |
SELECT DISTINCT a.business_unit ,a.common_id ,a.sa_id_type ,a.sf_deposit_id ,a.emplid ,a.ext_org_id ,' ' ,a.posted_date ,c.descr ,'T' ,a.sf_reversal_ind ,a.payment_amt FROM ps_payment_tbl a ,ps_item_sf b ,PS_ITEM_TYPE_TBL c ,ps_bus_unit_tbl_sf d 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.sf_deposit_id = b.sf_deposit_id AND b.receipt_nbr = 0 AND a.item_type =c.item_type AND a.business_unit = d.business_unit AND c.setid = ( SELECT e.setid FROM ps_set_cntrl_rec e WHERE e.setcntrlvalue = d.institution AND E.REC_GROUP_ID = 'ITEM TYPES' AND e.recname = 'ITEM_TYPE_TBL') AND c.eff_status = 'A' AND c.effdt = ( SELECT MAX(f.effdt) FROM PS_ITEM_TYPE_TBL f WHERE f.setid = c.setid AND f.item_type = c.item_type AND f.effdt <= %CurrentDateIn) |
# | 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 | SF_DEPOSIT_ID | Character(10) | VARCHAR2(10) NOT NULL | Deposit ID |
5 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL | Employee ID |
6 | EXT_ORG_ID | Character(11) | VARCHAR2(11) NOT NULL | External Org ID |
7 | CASHIER_OFFICE | Character(8) | VARCHAR2(8) NOT NULL | Cashier's Office |
8 | TRANS_DT | Date(10) | DATE | Transaction Date |
9 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
10 | SSF_APPR_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Approval status flag .
A=Approved C=Cancelled D=Denied G=Group Post N=Not Posted P=Pending T=Posted U=Unprocessed V=Voided X=Delayed Post Z=Processed |
11 | SF_REVERSAL_IND | Character(1) | VARCHAR2(1) NOT NULL | Reversal Indicator |
12 | AMOUNT_TOTAL | Signed Number(18,2) | DECIMAL(16,2) NOT NULL | Amount Total |