Author: jleroux
Date: Sat Sep 10 09:29:28 2011
New Revision: 1167480

URL: http://svn.apache.org/viewvc?rev=1167480&view=rev
Log:
A patch from Leon "trivial update to "convertUom" script" 
https://issues.apache.org/jira/browse/OFBIZ-4402

If we setup the custom uom conversion method which is called by convertUom 
service, and then invoke convertUom service, the exception raised:

    Could not complete the Convert UOM values...blahblah...Unknown parameter 
found: [convertUomCustom.asOfDate]Unknown parameter found: 
[convertUomCustom.defaultDecimalScale]Unknown parameter found: 
[convertUomCustom.defaultRoundingMode]Unknown parameter found: 
[convertUomCustom.purposeEnumId].

Modified:
    ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml

Modified: 
ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml
URL: 
http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml?rev=1167480&r1=1167479&r2=1167480&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml 
(original)
+++ ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml Sat 
Sep 10 09:29:28 2011
@@ -130,7 +130,7 @@ under the License.
             <!-- Do custom conversion, if we have customMethodId -->
             <if-not-empty field="uomConversion.customMethodId">  <!-- custom 
conversion? -->
                 <log level="verbose" message="using custom conversion 
customMethodId=${uomConversion.customMethodId}"/>
-                <set field="customParms" from-field="parameters"/>
+                <set-service-fields service-name="convertUomCustom" 
to-map="customParms" map="parameters"/>
                 <set field="customParms.uomConversion" 
from-field="uomConversion"/>
                 <call-service service-name="convertUomCustom" 
in-map-name="customParms">
                     <result-to-field result-name="convertedValue"/>


Reply via email to