644: wdj.wip_entity_id = wppb.wip_entity_id AND
645: NVL(wdj.date_closed, l_current_start_date) >= l_current_start_date))
646: OR (we.entity_type = 4 AND EXISTS (
647: SELECT 'X' 648: FROM wip_flow_schedules wfs 649: WHERE
650: wfs.wip_entity_id = wppb.wip_entity_id AND
651: wfs.scheduled_flag = 1 AND
652: wfs.status IN (1,2) AND