Fixed issue 24017. Remove continue statement.
authorGorka Ion Damián <gorkaion.damian@openbravo.com>
Fri, 07 Jun 2013 09:28:08 +0200
changeset 20515 d6594f0d34ff
parent 20514 962bd86db4f3
child 20516 2a1c35b2bb8b
Fixed issue 24017. Remove continue statement.
src-db/database/model/functions/MRP_RUN_INITIALIZE.xml
--- a/src-db/database/model/functions/MRP_RUN_INITIALIZE.xml	Fri Jun 07 12:31:18 2013 +0200
+++ b/src-db/database/model/functions/MRP_RUN_INITIALIZE.xml	Fri Jun 07 09:28:08 2013 +0200
@@ -173,9 +173,7 @@
         AND inouttrxtype = 'MS';
     END IF;
 
-    IF (v_Count > 0) THEN -- Product already initialized
-      CONTINUE;
-    END IF;
+   IF (v_Count = 0) THEN
 
     -- Call M_GET_STOCK
     DECLARE
@@ -367,6 +365,7 @@
         WHERE m_requisitionline_id = cur_requisitionline.m_requisitionline_id;
       END LOOP;
     END IF;
+   END IF;
   END LOOP;
 
 END; --BODY