Author: diveshdutta
Date: Sat Aug 27 06:18:47 2016
New Revision: 1757953
URL:
http://svn.apache.org/viewvc?rev=1757953&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/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();