[OFBiz] SVN: r4980 - trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt

jacopo at svn.ofbiz.org jacopo at svn.ofbiz.org
Wed May 11 01:59:55 EDT 2005


Author: jacopo
Date: 2005-05-11 00:59:48 -0500 (Wed, 11 May 2005)
New Revision: 4980

Modified:
   trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
Log:
Fixed bug found in the service that creates a production run based on a product configuration: the number of components was not computed correctly.
Thanks to Rafiu Fakunle for the bug report and fix.


Modified: trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
===================================================================
--- trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java	2005-05-10 12:58:26 UTC (rev 4979)
+++ trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java	2005-05-11 05:59:48 UTC (rev 4980)
@@ -1488,6 +1488,9 @@
             while (selComponents.hasNext()) {
                 Double componentQuantity = null;
                 GenericValue selComponent = (GenericValue)selComponents.next();
+                if (selComponent.get("quantity") != null) {
+                    componentQuantity = selComponent.getDouble("quantity");
+                }
                 if (componentQuantity == null) {
                     componentQuantity = new Double(1);
                 }



More information about the Svn mailing list