1977: AND BSO.line_id is null;
1978:
1979: else
1980: select count(*) into x_count
1981: from wip_osp_operations_val_v
1982: where operation_seq_num = x_wip_operation_seq_num
1983: and organization_id = x_destination_organization_id
1984: and ((wip_entity_id = x_wip_entity_id) and x_wip_line_id is null);
1985:
1985:
1986: if (x_count < 1) then
1987: x_progress := '25';
1988: select count(*) into x_count
1989: from wip_osp_operations_val_v
1990: where operation_seq_num = x_wip_operation_seq_num
1991: and organization_id = x_destination_organization_id
1992: and repetitive_schedule_id = x_wip_repetitive_schedule_id;
1993: end if;