CNTRCT_LN_VN_VW(SQL View) |
Index Back |
---|---|
Contract LineContract Line |
SELECT A.SETID , A.CNTRCT_ID , B.CNTRCT_LINE_NBR , A.VENDOR_SETID , A.VENDOR_ID , A.CNTRCT_BEGIN_DT , A.CNTRCT_TYPE , B.INV_ITEM_ID , B.DESCR254_MIXED , B.CATEGORY_ID , B.CNTR_LN_TYPE_ID FROM PS_CNTRCT_HDR A , PS_CNTRCT_LINE B WHERE A.SETID = B.SETID AND A.CNTRCT_ID = B.CNTRCT_ID AND A.VERSION_NBR = B.VERSION_NBR AND A.CNTRCT_STATUS = 'A' AND A.VERSION_STATUS = 'C' AND B.AMT_ONLY_FLG = 'N' AND B.CATEGORY_ID <> ' ' AND B.UNIT_OF_MEASURE <> ' ' AND B.DESCR254_MIXED <> ' ' AND B.LINE_STATUS = 'O' AND EXISTS ( SELECT 'X' FROM PS_CNTRCT_LINE_UOM C WHERE C.SETID = B.SETID AND C.CNTRCT_ID = B.CNTRCT_ID AND C.VERSION_NBR = B.VERSION_NBR AND C.CNTRCT_LINE_NBR = B.CNTRCT_LINE_NBR AND C.VNDR_LOC <> ' ' AND C.PRICE_CNTRCT_BASE <> 0) AND EXISTS ( SELECT 'X' FROM PS_CNTRCT_LN_SHIP D WHERE D.SETID = B.SETID AND D.CNTRCT_ID = B.CNTRCT_ID AND D.VERSION_NBR = B.VERSION_NBR AND D.CNTRCT_LINE_NBR = B.CNTRCT_LINE_NBR AND D.QTY_SCHED <> 0) |
# | 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 | CNTRCT_LINE_NBR | Number(5,0) | INTEGER NOT NULL | Buying Agreement Line Nbr |
4 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL | Vendor SetID |
5 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL | Vendor Identifier |
6 | CNTRCT_BEGIN_DT | Date(10) | DATE | Contract Begin Date |
7 | CNTRCT_TYPE | Character(2) | VARCHAR2(2) NOT NULL |
Contract Type
AP=Recurring Voucher GN=General Contract MS=Master Contract PO=Purchase Order |
8 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL | Item ID |
9 | DESCR254_MIXED | Character(254) | VARCHAR2(254) NOT NULL | Description |
10 | CATEGORY_ID | Character(5) | VARCHAR2(5) NOT NULL | Category ID |
11 | CNTR_LN_TYPE_ID | Character(30) | VARCHAR2(30) NOT NULL | Contract Line Type ID |