CNTRCT_VNDR_VW

(SQL View)
Index Back

Supplier Contract View


SELECT L.SETID , L.CNTRCT_ID , L.CNTRCT_LINE_NBR , H.VENDOR_SETID , H.VENDOR_ID , U.VNDR_LOC , U.UNIT_OF_MEASURE , H.CNTRCT_BEGIN_DT , H.CNTRCT_EXPIRE_DT , U.CURRENCY_CD , H.AMT_CNTRCT_MAX , HR.AMT_RELSD_OPEN_ITM , L.CNTRCT_LN_TYPE , L.CNTR_LN_TYPE_ID , L.INV_ITEM_ID , L.DESCR254_MIXED , L.CATEGORY_ID , L.QTY_LINE_MIN , L.QTY_LINE_MAX , L.AMT_LINE_MIN , L.AMT_LINE_MAX , U.PRICE_CNTRCT_BASE , U.DFLT_UOM , R.SUM_AMT , H.VERSION_STATUS FROM PS_CNTRCT_HDR H , PS_CNTRCT_HDR_RLS HR , PS_CNTRCT_LINE L , PS_CNTRCT_LINE_UOM U , PS_CNTRCT_RLAMT_VW R WHERE H.VERSION_STATUS = 'C' AND H.SETID = HR.SETID AND H.CNTRCT_ID = HR.CNTRCT_ID AND H.SETID = U.SETID AND H.CNTRCT_ID = U.CNTRCT_ID AND H.CNTRCT_STATUS = 'A' AND L.AMT_ONLY_FLG = 'N' AND L.VERSION_NBR = U.VERSION_NBR AND L.CNTRCT_LINE_NBR = U.CNTRCT_LINE_NBR AND %Join(COMMON_KEYS, CNTRCT_HDR H, CNTRCT_LINE L) AND %Join(COMMON_KEYS, CNTRCT_LINE L, CNTRCT_RLAMT_VW R)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID

Default Value: OPR_DEF_TBL_FS.SETID

2 CNTRCT_ID Character(25) VARCHAR2(25) NOT NULL Buying Agreement ID

Default Value: NEXT

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 VNDR_LOC Character(10) VARCHAR2(10) NOT NULL Vendor Location
7 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
8 CNTRCT_BEGIN_DT Date(10) DATE Contract Begin Date
9 CNTRCT_EXPIRE_DT Date(10) DATE Expire Date
10 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL Currency Code
11 AMT_CNTRCT_MAX Number(27,3) DECIMAL(26,3) NOT NULL Maximum Amount of Contract.
12 AMT_RELSD_OPEN_ITM Signed Number(28,3) DECIMAL(26,3) NOT NULL Amt relsd for Open Item
13 CNTRCT_LN_TYPE Character(1) VARCHAR2(1) NOT NULL Contract Line Type
I=Item
R=Role
14 CNTR_LN_TYPE_ID Character(30) VARCHAR2(30) NOT NULL Contract Line Type ID
15 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
16 DESCR254_MIXED Character(254) VARCHAR2(254) NOT NULL Description
17 CATEGORY_ID Character(5) VARCHAR2(5) NOT NULL Category ID
18 QTY_LINE_MIN Number(15,2) DECIMAL(14,2) NOT NULL Min Line Qty Per Order
19 QTY_LINE_MAX Number(15,2) DECIMAL(14,2) NOT NULL Max Line Qty Per Contract
20 AMT_LINE_MIN Number(27,3) DECIMAL(26,3) NOT NULL Min Line Amt Per Order
21 AMT_LINE_MAX Number(27,3) DECIMAL(26,3) NOT NULL Max Line Amt Per Contract
22 PRICE_CNTRCT_BASE Number(16,5) DECIMAL(15,5) NOT NULL Contract Base Price
23 DFLT_UOM Character(1) VARCHAR2(1) NOT NULL Vendor Default UOM
24 SUM_AMT Signed Number(28,3) DECIMAL(26,3) NOT NULL Summary amount used in reconciliation
25 VERSION_STATUS Character(1) VARCHAR2(1) NOT NULL Contract version status
C=Current
D=Draft
H=History