455:
456: if (x_wsm_enabled_flag = 'Y') then
457: select NVL(last_operation_seq_num,9999)
458: into x_last_opseq_num 459: from wsm_parameters 460: where organization_id = rec_wip_entity.organization_id;
461:
462: if (rec_opseq.quantity_completed = 0 OR rec_opseq.disable_date is not null) then
463: x_est_scrap_per_unit := 0;