CNTRCT_SE_LN_VW(SQL View) |
Index Back |
---|---|
Contract Line Item for PTSFGTIN 8/22/2018 LAK add fields for GTIN/PUNCHOUT |
SELECT L.SETID , L.CNTRCT_ID , L.VERSION_NBR , L.CNTRCT_LINE_NBR , L.AMT_ONLY_FLG , L.LINE_STATUS , L.ITM_SETID , L.INV_ITEM_ID , L.DESCR254_MIXED , L.MFG_ID , L.MFG_ITM_ID , U.UPN_ID , L.VNDR_CATALOG_ID , L.ITM_ID_VNDR , L.AUC_GROUP_ID , I.CATEGORY_CD , I.DESCR60 , I.DESCRSHORT , U.VNDR_LOC , R.AMT_LINE_RELEASED FROM PS_CNTRCT_LINE L , PS_ITM_CAT_TBL I , PS_CNTRCT_LIN_RLS R , PS_CNTRCT_LINE_UOM U WHERE L.ITM_SETID = I.SETID AND L.CATEGORY_ID = I.CATEGORY_ID AND I.EFFDT = ( SELECT MAX(I_ED.EFFDT) FROM PS_ITM_CAT_TBL I_ED WHERE I.SETID = I_ED.SETID AND I.CATEGORY_TYPE = I_ED.CATEGORY_TYPE AND I.CATEGORY_CD = I_ED.CATEGORY_CD AND I.CATEGORY_ID = I_ED.CATEGORY_ID AND I_ED.EFFDT <= %CurrentDateIn) AND L.SETID = U.SETID AND L.CNTRCT_ID = U.CNTRCT_ID AND L.VERSION_NBR = U.VERSION_NBR AND L.CNTRCT_LINE_NBR = U.CNTRCT_LINE_NBR AND L.SETID = R.SETID AND L.CNTRCT_ID = R.CNTRCT_ID AND L.CNTRCT_LINE_NBR = R.CNTRCT_LINE_NBR |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | CNTRCT_ID | Character(25) | VARCHAR2(25) NOT NULL | Buying Agreement ID |
3 | VERSION_NBR | Number(5,0) | INTEGER NOT NULL |
Contract Version number
Default Value: 1 |
4 | CNTRCT_LINE_NBR | Number(5,0) | INTEGER NOT NULL | Buying Agreement Line Nbr |
5 | AMT_ONLY_FLG | Character(1) | VARCHAR2(1) NOT NULL |
Amount Only
N=No Y=Yes |
6 | LINE_STATUS | Character(1) | VARCHAR2(1) NOT NULL |
Line Status
A=Active C=Cancelled I=Inactive O=Open P=Pending Default Value: O |
7 | ITM_SETID | Character(5) | VARCHAR2(5) NOT NULL | Item SetID |
8 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL |
Item ID
Prompt Table: %EDITTABLE13 |
9 | DESCR254_MIXED | Character(254) | VARCHAR2(254) NOT NULL | Description |
10 | MFG_ID | Character(50) | VARCHAR2(50) NOT NULL |
Manufacturer ID
Prompt Table: MANUFACTURER |
11 | MFG_ITM_ID | Character(50) | VARCHAR2(50) NOT NULL |
Manufacturer's Item ID
Prompt Table: %EDIT_MFGITM_ID |
12 | UPN_ID | Character(20) | VARCHAR2(20) NOT NULL | Universal Product Number |
13 | VNDR_CATALOG_ID | Character(20) | VARCHAR2(20) NOT NULL | Vendor's Catalog Number |
14 | ITM_ID_VNDR | Character(50) | VARCHAR2(50) NOT NULL | Vendor Item ID |
15 | AUC_GROUP_ID | Character(18) | VARCHAR2(18) NOT NULL | GroupID |
16 | CATEGORY_CD | Character(18) | VARCHAR2(18) NOT NULL | Category Code |
17 | DESCR60 | Character(60) | VARCHAR2(60) NOT NULL | Description |
18 | DESCRSHORT | Character(10) | VARCHAR2(10) NOT NULL | Short Description |
19 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
20 | AMT_LINE_RELEASED | Signed Number(28,3) | DECIMAL(26,3) NOT NULL | Total Line Amt Released |