Author: diveshdutta
Date: Sat Aug 27 05:47:34 2016
New Revision: 1757947
URL:
http://svn.apache.org/viewvc?rev=1757947&view=revLog:
[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/trunk/README.md
ofbiz/trunk/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
Modified: ofbiz/trunk/README.md
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/README.md?rev=1757947&r1=1757946&r2=1757947&view=diff==============================================================================
--- ofbiz/trunk/README.md (original)
+++ ofbiz/trunk/README.md Sat Aug 27 05:47:34 2016
@@ -1,7 +1,7 @@
Apache OFBiz®
============
-Welcome to __Apache OFBiz®__! A powerful top level Apache software project.
+Welcome to __Apache OFBiz®__! A powerful top level Apache software project.w
OFBiz is an Enterprise Resource Planning (ERP) System written in Java and
houses a large set of libraries, entities, services and features to run
all aspects of your business.
Modified: ofbiz/trunk/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/jobshopmgt/ProductionRun.java?rev=1757947&r1=1757946&r2=1757947&view=diff==============================================================================
--- ofbiz/trunk/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/jobshopmgt/ProductionRun.java (original)
+++ ofbiz/trunk/applications/manufacturing/src/main/java/org/apache/ofbiz/manufacturing/jobshopmgt/ProductionRun.java Sat Aug 27 05:47:34 2016
@@ -129,12 +129,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();