You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2006/08/02 13:40:28 UTC

svn commit: r427958 - /incubator/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunDeclaration.bsh

Author: jacopoc
Date: Wed Aug  2 04:40:26 2006
New Revision: 427958

URL: http://svn.apache.org/viewvc?rev=427958&view=rev
Log:
added two more fields to the context for the upcoming pdf report.

Modified:
    incubator/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunDeclaration.bsh

Modified: incubator/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunDeclaration.bsh
URL: http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunDeclaration.bsh?rev=427958&r1=427957&r2=427958&view=diff
==============================================================================
--- incubator/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunDeclaration.bsh (original)
+++ incubator/ofbiz/trunk/applications/manufacturing/webapp/manufacturing/WEB-INF/actions/jobshopmgt/ProductionRunDeclaration.bsh Wed Aug  2 04:40:26 2006
@@ -91,6 +91,7 @@
         updateProductionRunWrapper.putInContext("actionForm", "updateProductionRun");
         updateProductionRunWrapper.setUseRequestParameters(false);
         context.put("updateProductionRunWrapper",updateProductionRunWrapper);
+        context.put("productionRunData", productionRunData);
 
         productionRunData.put("workEffortId",productionRunId);
         productionRunData.put("productId", productionRun.getProductProduced().getString("productId"));
@@ -107,6 +108,7 @@
         productionRunData.put("quantityToProduce", quantityToProduce);
         productionRunData.put("quantityProduced", quantityProduced);
         productionRunData.put("quantityRejected", quantityRejected);
+        productionRunData.put("quantityRemaining", new Double(quantityToProduce.doubleValue() - quantityProduced.doubleValue()));
         productionRunData.put("estimatedCompletionDate", productionRun.getEstimatedCompletionDate());
         productionRunData.put("productionRunName", productionRun.getProductionRunName());
         productionRunData.put("description", productionRun.getDescription());