svn commit: r1757953 - /ofbiz/branches/release14.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java

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

svn commit: r1757953 - /ofbiz/branches/release14.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java

diveshdutta
Author: diveshdutta
Date: Sat Aug 27 06:18:47 2016
New Revision: 1757953

URL: http://svn.apache.org/viewvc?rev=1757953&view=rev
Log:
[OFBIZ-7558]  Fixed:Any update made for Qty to Produce in a newly created Production Run is not saved. Thanks Swapnil Shah for reporting the issue and Anuj Jain for providing the patch

Modified:
    ofbiz/branches/release14.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java

Modified: ofbiz/branches/release14.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java?rev=1757953&r1=1757952&r2=1757953&view=diff
==============================================================================
--- ofbiz/branches/release14.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java (original)
+++ ofbiz/branches/release14.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java Sat Aug 27 06:18:47 2016
@@ -130,12 +130,13 @@ public class ProductionRun {
             productionRun.set("workEffortName",this.productionRunName);
             productionRun.set("description",this.description);
             try {
-                productionRun.store();
                 if (quantityIsUpdated) {
+                    productionRun.set("quantityToProduce",(BigDecimal) this.quantity);
                     productionRunProduct.set("estimatedQuantity",this.quantity.doubleValue());
                     productionRunProduct.store();
                     quantityIsUpdated = false;
                 }
+                productionRun.store();
                 if (productionRunRoutingTasks != null) {
                     for (Iterator<GenericValue> iter = productionRunRoutingTasks.iterator(); iter.hasNext();) {
                         GenericValue routingTask = iter.next();