You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2017/06/06 06:12:22 UTC

svn commit: r1797733 - /ofbiz/ofbiz-framework/trunk/applications/product/minilang/product/cost/CostServices.xml

Author: deepak
Date: Tue Jun  6 06:12:22 2017
New Revision: 1797733

URL: http://svn.apache.org/viewvc?rev=1797733&view=rev
Log:
Fixed: CostServices.xml#getProductCost fail currency conversion.(OFBIZ-9387) 

Thanks Wai for your contribution.

Modified:
    ofbiz/ofbiz-framework/trunk/applications/product/minilang/product/cost/CostServices.xml

Modified: ofbiz/ofbiz-framework/trunk/applications/product/minilang/product/cost/CostServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/product/minilang/product/cost/CostServices.xml?rev=1797733&r1=1797732&r2=1797733&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/product/minilang/product/cost/CostServices.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/product/minilang/product/cost/CostServices.xml Tue Jun  6 06:12:22 2017
@@ -109,7 +109,6 @@ under the License.
             <if-compare field="productCost" operator="equals" value="0" type="BigDecimal">
                 <clear-field field="costsAndMap"/>
                 <set from-field="parameters.productId" field="costsAndMap.productId"/>
-                <set from-field="parameters.productPriceTypeId" field="costsAndMap.productPriceTypeId"/>
                 <find-by-and entity-name="SupplierProduct" map="costsAndMap" list="priceCosts" order-by-list="orderByList"/>
                 <filter-list-by-date list="priceCosts" from-field-name="availableFromDate" thru-field-name="availableThruDate"/>
                 <first-from-list list="priceCosts" entry="priceCost"/>
@@ -119,7 +118,7 @@ under the License.
                     <set from-field="priceCost.lastPrice" field="inputMap.originalValue"/>
                     <set from-field="priceCost.currencyUomId" field="inputMap.uomId"/>
                     <set from-field="parameters.currencyUomId" field="inputMap.uomIdTo"/>
-                    
+
                     <call-service service-name="convertUom" in-map-name="inputMap" require-new-transaction="true" break-on-error="false">
                         <result-to-field result-name="convertedValue" field="productCost"/>
                     </call-service>