11/04/2009 ARN 1925789002 Ensured that partially received PO inquiry page shows the correct PO Qty

RECV_PART_VW1

(SQL View)
Index Back

SELECT H.BUYER_ID , H.BUSINESS_UNIT , H.PO_ID , MIN(H.PO_DT) , SUM(S.QTY_PO) , SUM(S.MERCHANDISE_AMT) , 0 , 0 , MIN(H.CC_SECURITY_ID) , MIN(H.CC_USE_FLAG) FROM PS_PO_HDR H , PS_PO_LINE L , PS_PO_LINE_SHIP S WHERE H.PO_STATUS IN ('A', 'D') AND H.BUSINESS_UNIT = L.BUSINESS_UNIT AND H.PO_ID = L.PO_ID AND H.BUSINESS_UNIT = S.BUSINESS_UNIT AND H.PO_ID = S.PO_ID AND L.RECV_REQ <> 'X' AND L.CANCEL_STATUS <> 'X' AND L.LINE_NBR = S.LINE_NBR AND S.CANCEL_STATUS <> 'X' AND NOT EXISTS ( SELECT 'X' FROM PS_RECV_LN_SHIP R WHERE R.BUSINESS_UNIT_PO = H.BUSINESS_UNIT AND R.PO_ID = H.PO_ID ) GROUP BY H.BUYER_ID , H.BUSINESS_UNIT , H.PO_ID

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 BUYER_ID Character(30) VARCHAR2(30) NOT NULL Buyer
2 BUSINESS_UNIT Character(5) VARCHAR2(5) NOT NULL Business Unit
3 PO_ID Character(10) VARCHAR2(10) NOT NULL Purchase Order
4 PO_DT Date(10) DATE Date
5 QTY_PO Number(16,4) DECIMAL(15,4) NOT NULL Purchase Order Quantity
6 MERCH_AMT_PO Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amount
7 QTY_RECV Signed Number(17,4) DECIMAL(15,4) NOT NULL Quantity Received
8 MERCH_AMT_RECV Signed Number(28,3) DECIMAL(26,3) NOT NULL Merchandise Amount Received
9 CC_SECURITY_ID Number(10,0) DECIMAL(10) NOT NULL Procurement Card Number
10 CC_USE_FLAG Character(1) VARCHAR2(1) NOT NULL Use Procurement Card

Y/N Table Edit

Default Value: N