diff --git a/base/src/org/eevolution/process/MRP.java b/base/src/org/eevolution/process/MRP.java
index ccc290c703..1848590b84 100644
--- a/base/src/org/eevolution/process/MRP.java
+++ b/base/src/org/eevolution/process/MRP.java
@@ -22,6 +22,7 @@ import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Timestamp;
+import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
@@ -184,21 +185,62 @@ public class MRP extends SvrProcess
log.info("Type Document to Requisition:"+ DocTypeReq);
log.info("Type Document to Manufacturing Order:" + DocTypeMO);
log.info("Type Document to Distribution Order:" + DocTypeDO);
- if(p_M_Warehouse_ID==0)
- {
- MWarehouse[] ws = MWarehouse.getForOrg(getCtx(), p_AD_Org_ID);
- for(MWarehouse w : ws)
- {
-
- runMRP(m_AD_Client_ID,p_AD_Org_ID,p_S_Resource_ID,w.getM_Warehouse_ID());
- result = result + "
finish MRP to Warehouse " +w.getName();
- }
- }
- else
- {
- runMRP(m_AD_Client_ID,p_AD_Org_ID,p_S_Resource_ID,p_M_Warehouse_ID);
- }
-
+
+ ArrayList