489: + SUM(quantity_scrapped)
490: -- + SUM(quantity_completed)
491: -- These assemblies are in some other operation
492: INTO p_total_quantity 493: FROM wip_operations wop 494: WHERE
495: wop.organization_id = p_organization_id
496: AND wop.wip_entity_id = p_wip_entity_id
497: AND