[OFBiz] SVN: r6732 - trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp

jacopo@svn.ofbiz.org jacopo at svn.ofbiz.org
Tue Feb 14 09:07:13 CST 2006


Author: jacopo
Date: 2006-02-14 09:07:07 -0600 (Tue, 14 Feb 2006)
New Revision: 6732

Modified:
   trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
Log:
Fixed bug in MRP algorithm: userLogin was not passed (under some circumstances) to the "getManufacturingComponents" service.

Modified: trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java
===================================================================
--- trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java	2006-02-14 14:48:35 UTC (rev 6731)
+++ trunk/applications/manufacturing/src/org/ofbiz/manufacturing/mrp/MrpServices.java	2006-02-14 15:07:07 UTC (rev 6732)
@@ -643,7 +643,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)));
+                            serviceResponse = dispatcher.runSync("getManufacturingComponents", UtilMisc.toMap("productId", product.getString("productId"), "quantity", new Double(positiveEventQuantity), "userLogin", userLogin));
                         } catch (Exception e) {
                             return ServiceUtil.returnError("Problem, can not find the product for a event, for more detail look at the log");
                         }



More information about the Svn mailing list