295: into v_delete_permitted
296: from sys.dual
297: where not exists (
298: select null
299: from po_line_locations_all po
300: where po.cancelled_by = P_PERSON_ID
301: or po.closed_by = P_PERSON_ID)
302: and not exists (
303: select null