PAYMENT_TBL_VW3(SQL View) |
Index Back |
---|---|
Payment Item VW |
SELECT a.business_unit ,a.common_id ,a.sa_id_type ,a.emplid ,a.ext_org_id ,a.posted_date ,a.accounting_dt ,d.descr ,a.strm ,%DecMult(-1, SUM(a.payment_amt)) ,0 FROM ps_payment_tbl a , ps_bus_unit_tbl_sf c , PS_ITEM_TYPE_TBL d WHERE a.business_unit = c.business_unit AND d.item_type = a.item_type AND d.setid = ( SELECT e.setid FROM ps_set_cntrl_rec e WHERE e.setcntrlvalue = c.institution AND e.recname = 'ITEM_TYPE_TBL') AND d.effdt = ( SELECT MAX(f.effdt) FROM PS_ITEM_TYPE_TBL f WHERE f.setid = d.setid AND f.item_type = d.item_type AND f.effdt <= %CurrentDateIn) AND d.eff_status = 'A' GROUP BY a.business_unit ,a.common_id ,a.sa_id_type ,a.emplid ,a.ext_org_id ,a.posted_date ,a.accounting_dt ,d.descr ,a.strm |
# | 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 | EMPLID | Character(11) | VARCHAR2(11) NOT NULL |
Employee ID
Prompt Table: PEOPLE_SRCH |
5 | EXT_ORG_ID | Character(11) | VARCHAR2(11) NOT NULL | External Org ID |
6 | POSTED_DATE | Date(10) | DATE | Date Posted |
7 | ITEM_EFFECTIVE_DT | Date(10) | DATE | Item Effective Date |
8 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
9 | ITEM_TERM | Character(4) | VARCHAR2(4) NOT NULL | Item Term |
10 | AMOUNT | Signed Number(20,3) | DECIMAL(18,3) NOT NULL | Commuting Allowance Paid Per Cycle. |
11 | AMOUNT_TOTAL | Signed Number(18,2) | DECIMAL(16,2) NOT NULL | Amount Total |