ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaco...@apache.org
Subject svn commit: r520340 - /ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
Date Tue, 20 Mar 2007 09:04:13 GMT
Author: jacopoc
Date: Tue Mar 20 02:04:13 2007
New Revision: 520340

URL: http://svn.apache.org/viewvc?view=rev&rev=520340
Log:
Fix for the MRP process to better handle WIP products.

Modified:
    ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java

Modified: ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java?view=diff&rev=520340&r1=520339&r2=520340
==============================================================================
--- ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
(original)
+++ ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
Tue Mar 20 02:04:13 2007
@@ -593,7 +593,7 @@
                         // The components are also loaded thru the configurator
                         Map serviceResponse = null;
                         try {
-                            serviceResponse = dispatcher.runSync("getManufacturingComponents",
UtilMisc.toMap("productId", product.getString("productId"), "quantity", new Double(positiveEventQuantity),
"userLogin", userLogin));
+                            serviceResponse = dispatcher.runSync("getManufacturingComponents",
UtilMisc.toMap("productId", product.getString("productId"), "quantity", new Double(positiveEventQuantity),
"excludeWIPs", Boolean.FALSE, "userLogin", userLogin));
                         } catch (Exception e) {
                             return ServiceUtil.returnError("An error occurred exploding the
product [" + product.getString("productId") + "]");
                         }
@@ -625,7 +625,7 @@
                         // The components are also loaded thru the configurator
                         Map serviceResponse = null;
                         try {
-                            serviceResponse = dispatcher.runSync("getManufacturingComponents",
UtilMisc.toMap("productId", product.getString("productId"), "quantity", new Double(proposedOrder.getQuantity()),
"userLogin", userLogin));
+                            serviceResponse = dispatcher.runSync("getManufacturingComponents",
UtilMisc.toMap("productId", product.getString("productId"), "quantity", new Double(proposedOrder.getQuantity()),
"excludeWIPs", Boolean.FALSE, "userLogin", userLogin));
                         } catch (Exception e) {
                             return ServiceUtil.returnError("An error occurred exploding the
product [" + product.getString("productId") + "]");
                         }



Mime
View raw message