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

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

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

jacopoc
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());