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

RECV_PART_VW2

(SQL View)
Index Back

SELECT N.BUYER_ID , N.BUSINESS_UNIT , N.PO_ID , MIN(N.PO_DT) , N.QTY_PO , N.MERCH_AMT_PO , SUM(R.QTY_SH_NETRCV_VUOM) , SUM(R.MERCHANDISE_AMT) , MIN(N.CC_SECURITY_ID) , MIN(N.CC_USE_FLAG) FROM PS_RECV_PART_VW3 N , PS_RECV_LN_SHIP R WHERE N.BUSINESS_UNIT = R.BUSINESS_UNIT_PO AND N.PO_ID = R.PO_ID AND R.RECV_SHIP_STATUS <> 'X' AND NOT EXISTS ( SELECT 'X' FROM PS_RECV_PART_VW1 V WHERE V.BUSINESS_UNIT = N.BUSINESS_UNIT AND V.PO_ID = N.PO_ID) GROUP BY N.BUYER_ID, N.BUSINESS_UNIT, N.PO_ID, N.QTY_PO, N.MERCH_AMT_PO HAVING N.QTY_PO > SUM(R.QTY_SH_NETRCV_VUOM)

# 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