You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by le...@apache.org on 2009/11/18 12:45:18 UTC
svn commit: r881734 -
/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
Author: lektran
Date: Wed Nov 18 11:45:18 2009
New Revision: 881734
URL: http://svn.apache.org/viewvc?rev=881734&view=rev
Log:
Pass the fixedAssetId to the createCostComponent service when creating a production run task cost based on fixed asset usage
Modified:
ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
Modified: ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java?rev=881734&r1=881733&r2=881734&view=diff
==============================================================================
--- ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java (original)
+++ ofbiz/trunk/applications/manufacturing/src/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.java Wed Nov 18 11:45:18 2009
@@ -1045,6 +1045,7 @@
inMap.put("costComponentTypeId", "ACTUAL_ROUTE_COST");
inMap.put("costUomId", currencyUomId);
inMap.put("cost", fixedAssetCost);
+ inMap.put("fixedAssetId", fixedAsset.get("fixedAssetId"));
dispatcher.runSync("createCostComponent", inMap);
}
}