OM_PWC_UOMCR_VW(SQL View) |
Index Back |
---|---|
UOM conversion caculating viewUOM conversion for Average Price & Margin Analysis |
SELECT P.SETID , P.PRODUCT_ID , MUL.UNIT_OF_MEASURE , MUL.CONVERSION_RATE , DFT.CONVERSION_RATE FROM PS_PROD_ITEM P , PS_INV_ORDR_UOM_VW MUL , PS_OM_PWC_PDUOM_VW DFT WHERE P.SETID = MUL.SETID AND P.PRODUCT_ID = MUL.INV_ITEM_ID AND P.PRODUCT_KIT_FLAG = 'N' AND P.SETID = DFT.SETID AND P.PRODUCT_ID = DFT.PRODUCT_ID UNION SELECT T.SETID , T.PRODUCT_ID , T.UNIT_OF_MEASURE , 1.00000000 , 1.00000000 FROM PS_PROD_UOM T WHERE EXISTS ( SELECT 'X' FROM PS_PROD_ITEM P3 WHERE P3.SETID = T.SETID AND P3.PRODUCT_ID = T.PRODUCT_ID AND P3.PRODUCT_KIT_FLAG = 'Y' ) |
# | PeopleSoft Field Name | PeopleSoft Field Type | Database Column Type | Description |
---|---|---|---|---|
1 | SETID | Character(5) | VARCHAR2(5) NOT NULL | SetID |
2 | PRODUCT_ID | Character(18) | VARCHAR2(18) NOT NULL | Product ID |
3 | UNIT_OF_MEASURE | Character(3) | VARCHAR2(3) NOT NULL |
Used on an approval rule set.
MHR=Muti Hourly PER=Percentage SQF=Square Footage |
4 | OM_PWC_UOM_CV_MULT | Signed Number(17,8) | DECIMAL(15,8) NOT NULL | Multiply factor |
5 | OM_PWC_UOM_CV_DIV | Signed Number(17,8) | DECIMAL(15,8) NOT NULL | Divide factor |