PV_ITM_VUOM_VW2(SQL View) |
Index Back |
---|---|
Item Supplier UOM View |
SELECT DISTINCT C.SETID , C.INV_ITEM_ID , A.SETID , A.VENDOR_ID , A.VNDR_LOC , C.UNIT_OF_MEASURE , P.CURRENCY_CD , B.DESCR , C.CONVERSION_RATE , %Round(P.PRICE_VNDR, 4) , P.QTY_MIN FROM PS_VENDOR_LOC A , PS_UNITS_TBL B , PS_ITM_VNDR_UOM C , PS_ITM_VNDR_UOM_PR P WHERE A.PRICE_SETID = C.VENDOR_SETID AND A.PRICE_VENDOR = C.VENDOR_ID AND A.PRICE_LOC = C.VNDR_LOC AND C.UNIT_OF_MEASURE = B.UNIT_OF_MEASURE AND A.EFF_STATUS = 'A' AND A.EFFDT = ( SELECT MAX(D.EFFDT) FROM PS_VENDOR_LOC D WHERE A.PRICE_SETID = D.SETID AND A.PRICE_VENDOR = D.VENDOR_ID AND A.PRICE_LOC = D.VNDR_LOC AND D.EFFDT <=%CurrentDateIn) AND C.SETID = P.SETID AND C.INV_ITEM_ID = P.INV_ITEM_ID AND C.VENDOR_SETID = P.VENDOR_SETID AND C.VENDOR_ID = P.VENDOR_ID AND C.VNDR_LOC = P.VNDR_LOC AND C.UNIT_OF_MEASURE = P.UNIT_OF_MEASURE AND P.EFF_STATUS = 'A' AND P.EFFDT = ( SELECT MAX(EFFDT) FROM PS_ITM_VNDR_UOM_PR WHERE SETID = P.SETID AND INV_ITEM_ID = P.INV_ITEM_ID AND VENDOR_SETID = P.VENDOR_SETID AND VENDOR_ID = P.VENDOR_ID AND VNDR_LOC = P.VNDR_LOC AND UNIT_OF_MEASURE = P.UNIT_OF_MEASURE AND CURRENCY_CD = P.CURRENCY_CD AND QTY_MIN = P.QTY_MIN AND P.EFFDT <=%CurrentDateIn) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | ITM_SETID | Character(5) | VARCHAR2(5) NOT NULL |
Item SetID
Prompt Table: SP_SETID_NONVW |
2 | INV_ITEM_ID | Character(18) | VARCHAR2(18) NOT NULL |
Item ID
Prompt Table: ITM_PURCH_VW |
3 | VENDOR_SETID | Character(5) | VARCHAR2(5) NOT NULL |
Vendor SetID
Prompt Table: SP_SETID_NONVW |
4 | VENDOR_ID | Character(10) | VARCHAR2(10) NOT NULL |
Vendor Identifier
Prompt Table: VNDR_VNDSET_VW |
5 | VNDR_LOC | Character(10) | VARCHAR2(10) NOT NULL | Vendor Location |
6 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
7 | CURRENCY_CD | Character(3) | VARCHAR2(3) NOT NULL | Currency Code |
8 | DESCR | Character(30) | VARCHAR2(30) NOT NULL | Description |
9 | CONVERSION_RATE | Signed Number(17,8) | DECIMAL(15,8) NOT NULL | Conversion Rate |
10 | PRICE | Signed Number(16,4) | DECIMAL(14,4) NOT NULL | This is price per unit for calculating the service charge. |
11 | QTY_MIN | Number(16,4) | DECIMAL(15,4) NOT NULL | Minimum Quantity |