ROF_OFFPROD_VW

(SQL View)
Index Back

Offer Products

Offer presentation - offer products View Note - removed AND C.UNIT_OF_MEASURE = D.UNIT_OF_MEASURE NOTE - left outer join on price break because price break does not exist on a discount type of NONE

SELECT A.SETID , D.BUSINESS_UNIT_IN , A.RA_OFFER_ID , A.PRODUCT_ID , B.DESCR , C.UNIT_OF_MEASURE , C.QTY , D.LIST_PRICE , D.CURRENCY_CD FROM PS_RA_OFFER_PRODCT A , PS_RA_OFFER_PRCBRK C , PS_PROD_ITEM B , PS_PROD_PRICE D WHERE A.SETID = C.SETID(+) AND A.RA_OFFER_ID = C.RA_OFFER_ID(+) AND A.PRICE_SET_ID = C.PRICE_SET_ID(+) AND C.BREAK_ID = 1 AND A.SETID = B.SETID AND A.PRODUCT_ID = B.PRODUCT_ID AND A.SETID = D.SETID(+) AND A.PRODUCT_ID = D.PRODUCT_ID(+) AND D.EFFDT =( SELECT MAX(E.EFFDT) FROM PS_PROD_PRICE E WHERE D.SETID = E.SETID AND D.PRODUCT_ID = E.PRODUCT_ID AND E.EFFDT <= %CurrentDateIn AND E.EFF_STATUS = 'A')

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL This field is used to store the value of SetID on various setup tables.
2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
3 RA_OFFER_ID Character(15) VARCHAR2(15) NOT NULL Marketing Offer ID
4 PRODUCT_ID Character(18) VARCHAR2(18) NOT NULL Product ID
5 DESCR Character(30) VARCHAR2(30) NOT NULL Description
6 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
CS=Case
EA=Each
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
7 QTY Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity
8 LIST_PRICE Signed Number(17,4) DECIMAL(15,4) NOT NULL List Price
9 CURRENCY_CD Character(3) VARCHAR2(3) NOT NULL This field stores the Currency Code value.

Prompt Table: CURRENCY_CD_TBL