VCHR_UPN_DEF_VW

(SQL View)
Index Back

Voucher UPN Default View


SELECT A.SETID , A.INV_ITEM_ID , A.MFG_ID , A.MFG_ITM_ID , B.UNIT_OF_MEASURE , B.UPN_TYPE_CD , B.UPN_ID FROM PS_ITEM_MFG A LEFT OUTER JOIN PS_ITEM_MFG_UPN_FS B ON A.SETID = B.SETID AND A.INV_ITEM_ID = B.INV_ITEM_ID AND A.MFG_ID = B.MFG_ID AND A.MFG_ITM_ID = B.MFG_ITM_ID WHERE A.PREFERRED_MFG ='Y' AND EXISTS ( SELECT 'X' FROM PS_MANUFACTURER C WHERE A.SETID = C.SETID AND A.MFG_ID = C.MFG_ID AND ((B.UPN_TYPE_CD = C.UPN_TYPE_CD) OR (C.UPN_TYPE_CD = ' ')))

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 SETID Character(5) VARCHAR2(5) NOT NULL SetID
2 INV_ITEM_ID Character(18) VARCHAR2(18) NOT NULL Item ID
3 MFG_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer ID
4 MFG_ITM_ID Character(50) VARCHAR2(50) NOT NULL Manufacturer's Item ID
5 UNIT_OF_MEASURE Character(3) VARCHAR2(3) NOT NULL Used on an approval rule set.
MHR=Muti Hourly
PER=Percentage
SQF=Square Footage
6 UPN_TYPE_CD Character(4) VARCHAR2(4) NOT NULL Universal Product Number Format Type
7 UPN_ID Character(20) VARCHAR2(20) NOT NULL Universal Product Number