DBA Data[Home] [Help]

APPS.WSH_TRIP_CONSOLIDATION dependencies on WSH_DELIVERY_LEGS

Line 443: ' NOT EXISTS (SELECT 1 FROM wsh_delivery_legs ' ||

439: --
440: v_From := ' FROM wsh_new_deliveries wnd ';
441: --
442: v_where := ' WHERE wnd.shipment_direction IN (''O'', ''IO'') AND ' ||
443: ' NOT EXISTS (SELECT 1 FROM wsh_delivery_legs ' ||
444: ' WHERE delivery_id = wnd.delivery_id) ';
445: --
446: IF p_customer_id IS NOT NULL THEN
447: --

Line 896: wsh_trip_stops wts2, wsh_delivery_legs wdl

892: --
893: CURSOR c_DeliveryCount(p_tripId IN NUMBER) IS
894: SELECT count(DISTINCT delivery_id)
895: FROM wsh_trips wt, wsh_trip_stops wts1,
896: wsh_trip_stops wts2, wsh_delivery_legs wdl
897: WHERE wt.trip_id = p_tripId
898: AND wts1.stop_id = wdl.pick_up_stop_id
899: AND wts2.stop_id = wdl.drop_off_stop_id
900: AND wts1.trip_id = wt.trip_id