You are on page 1of 1

SELECT pol.po_header_id , pol.po_line_id , pll.line_location_id , pll.quantity , rsh. shipment_header_id , rsh. receipt_source_code , rsh. vendor_id , rsh. vendor_site_id , rsh.

organization_id , rsh. shipment_num , rsh. receipt_num , rsh. ship_to_location_id , rsh. bill_of_lading , rsl.shipment_line_id , rsl.QUANTITY_SHIPPED , rsl.QUANTITY_RECEIVED , rct.transaction_type , rct.transaction_id , DECODE(pol.order_type_lookup_code,'RATE',NVL(rct.amount,0),'FIXED PRICE', NVL(rct.amount,0), NVL(rct.source_doc_quantity,0) ) transaction_qty FROM rcv_transactions rct , rcv_shipment_headers rsh , rcv_shipment_lines rsl , po_lines pol , po_line_locations pll WHERE rct.po_line_location_id = 28302 --- check it out AND rct.po_line_location_id = pll.line_location_id AND rct.po_line_id = pol.po_line_id AND NVL(pol.order_type_lookup_code,'QUANTITY') NOT IN ('RATE','FIXED PRICE') AND rct.shipment_line_id =rsl.shipment_line_id AND rsl.shipment_header_id =rsh.shipment_header_id ORDER BY rct.transaction_id

You might also like