676: || l_material_detail_id);
677: END IF;
678:
679: IF l_batch_id IS NOT NULL THEN
680: DELETE FROM gme_pending_product_lots
681: WHERE batch_id = l_batch_id;
682: ELSIF l_material_detail_id IS NOT NULL THEN
683: DELETE FROM gme_pending_product_lots
684: WHERE material_detail_id = l_material_detail_id;
679: IF l_batch_id IS NOT NULL THEN
680: DELETE FROM gme_pending_product_lots
681: WHERE batch_id = l_batch_id;
682: ELSIF l_material_detail_id IS NOT NULL THEN
683: DELETE FROM gme_pending_product_lots
684: WHERE material_detail_id = l_material_detail_id;
685: ELSE
686: DELETE FROM gme_pending_product_lots
687: WHERE batch_id = l_batch_id
682: ELSIF l_material_detail_id IS NOT NULL THEN
683: DELETE FROM gme_pending_product_lots
684: WHERE material_detail_id = l_material_detail_id;
685: ELSE
686: DELETE FROM gme_pending_product_lots
687: WHERE batch_id = l_batch_id
688: AND material_detail_id = l_material_detail_id;
689: END IF;
690: EXCEPTION