svn commit: r451577 - in /incubator/ofbiz/trunk/applications/manufacturing: src/org/ofbiz/manufacturing/mrp/MrpServices.java webapp/manufacturing/WEB-INF/actions/mrp/findInventoryEventPlan.bsh

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r451577 - in /incubator/ofbiz/trunk/applications/manufacturing: src/org/ofbiz/manufacturing/mrp/MrpServices.java webapp/manufacturing/WEB-INF/actions/mrp/findInventoryEventPlan.bsh

jacopoc
Author: jacopoc
Date: Sat Sep 30 03:56:13 2006
New Revision: 451577

URL: http://svn.apache.org/viewvc?view=rev&rev=451577
Log:
Cleaned up some bad references to the ProductHelper class that has been recently removed.
Thanks to Marcelo Hamra for the bug report (OFBIZ-344).

Modified:
    incubator/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
    incubator/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/mrp/findInventoryEventPlan.bsh

Modified: incubator/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java?view=diff&rev=451577&r1=451576&r2=451577
==============================================================================
--- incubator/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java (original)
+++ incubator/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java Sat Sep 30 03:56:13 2006
@@ -45,11 +45,6 @@
 import org.ofbiz.service.ModelService;
 import org.ofbiz.service.ServiceUtil;
 
-// TODO:
-//  Verificare il metodo: ProductHelper.isBuild(product)
-//  Verificare il metodo ProposedOrder.calculateQuantityToSupply()
-//  il metodo findProductMrpQoh() deve richiamare internamente un servizio
-//  
 /**
  * Services for running MRP
  *

Modified: incubator/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/mrp/findInventoryEventPlan.bsh
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/mrp/findInventoryEventPlan.bsh?view=diff&rev=451577&r1=451576&r2=451577
==============================================================================
--- incubator/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/mrp/findInventoryEventPlan.bsh (original)
+++ incubator/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/mrp/findInventoryEventPlan.bsh Sat Sep 30 03:56:13 2006
@@ -25,7 +25,6 @@
 import org.ofbiz.service.DispatchContext;
 import org.ofbiz.entity.condition.*;
 import org.ofbiz.manufacturing.mrp.MrpServices;
-import org.ofbiz.manufacturing.techdata.ProductHelper;
 import org.ofbiz.base.util.Debug;
 
 GenericDelegator delegator = request.getAttribute("delegator");
@@ -119,23 +118,3 @@
 
 facilities = delegator.findAll("Facility", UtilMisc.toList("facilityId"));
 context.put("facilities", facilities);
-
-if (inventoryList != null && !inventoryList.isEmpty() ){
-    List numberProductList = ProductHelper.getVariationProduct(inventoryList.subList(0, highIndex), dispatcher);
-    context.put("numberProductList", numberProductList);
-
-
-    //Map productQoh
-    List qohProduct = new LinkedList();
-    String productTmp = new String("");
-    GenericValue inventoryTmp;
-    for( Iterator iter = inventoryList.iterator(); iter.hasNext(); ){
-    inventoryTmp = iter.next();
-    productId = inventoryTmp.getString("productId");
-    if( ! productId.equals( productTmp ) ){
-        qohProduct.add( MrpServices.findProductMrpQoh(inventoryTmp.getRelatedOneCache("Product"), dispatcher) );
-        productTmp = productId;
-    }
-    }
-    context.put("qohProduct", qohProduct );
-}