Fix for the MRP process to better handle WIP products.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@520340 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacopo Cappellato
2007-03-20 09:04:13 +00:00
parent 9cbc330a23
commit 5244ed3290
@@ -593,7 +593,7 @@ public class MrpServices {
// 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 @@ public class MrpServices {
// 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") + "]");
}