You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by di...@apache.org on 2016/08/27 06:16:42 UTC
svn commit: r1757952 -
/ofbiz/branches/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
Author: diveshdutta
Date: Sat Aug 27 06:16:41 2016
New Revision: 1757952
URL: http://svn.apache.org/viewvc?rev=1757952&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/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
Modified: ofbiz/branches/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java
URL: http://svn.apache.org/viewvc/ofbiz/branches/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java?rev=1757952&r1=1757951&r2=1757952&view=diff
==============================================================================
--- ofbiz/branches/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java (original)
+++ ofbiz/branches/release15.12/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRun.java Sat Aug 27 06:16:41 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();