1418: wdj.wip_entity_id = wppb.wip_entity_id AND
1419: NVL(wdj.date_closed, l_current_start_date) >= l_current_start_date))
1420: OR (we.entity_type = 4 AND EXISTS (
1421: SELECT 'X' 1422: FROM wip_flow_schedules wfs 1423: WHERE
1424: wfs.wip_entity_id = wppb.wip_entity_id AND
1425: wfs.scheduled_flag = 1 AND
1426: wfs.status IN (1,2) AND