Author: jacopoc
Date: Fri Sep 11 09:32:52 2009
New Revision: 813740
URL:
http://svn.apache.org/viewvc?rev=813740&view=revLog:
fixed bug reported by Giorgio Tomaselli: materials' standard costs, if already there, were not refreshed by the auto-create button.
Modified:
ofbiz/trunk/applications/product/script/org/ofbiz/product/cost/CostServices.xml
Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/cost/CostServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/cost/CostServices.xml?rev=813740&r1=813739&r2=813740&view=diff==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/cost/CostServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/cost/CostServices.xml Fri Sep 11 09:32:52 2009
@@ -276,11 +276,12 @@
</simple-method>
<simple-method method-name="calculateProductCosts" short-description="Calculates the product's cost">
<!-- the existing costs are expired -->
- <!--
+ <set value="${parameters.costComponentTypePrefix}_ROUTE_COST" field="cancelMap.costComponentTypeId"/>
<set from-field="parameters.productId" field="cancelMap.productId"/>
<set from-field="parameters.currencyUomId" field="cancelMap.costUomId"/>
<call-service service-name="cancelCostComponents" in-map-name="cancelMap"/>
- -->
+ <set value="${parameters.costComponentTypePrefix}_MAT_COST" field="cancelMap.costComponentTypeId"/>
+ <call-service service-name="cancelCostComponents" in-map-name="cancelMap"/>
<!-- calculate the total materials' cost -->
<set from-field="parameters.productId" field="callSvcMap.productId"/>
<call-service service-name="getManufacturingComponents" in-map-name="callSvcMap">