Author: jacopoc
Date: Fri Nov 9 23:07:27 2007
New Revision: 593741
URL:
http://svn.apache.org/viewvc?rev=593741&view=revLog:
Fix to prevent grammar validation error.
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=593741&r1=593740&r2=593741&view=diff==============================================================================
--- ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml (original)
+++ ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml Fri Nov 9 23:07:27 2007
@@ -122,8 +122,9 @@
</if-not-empty> <!-- custom conversion? -->
<!-- round result, if UomConversion[Dated] so specifies -->
+ <set field="roundingMode" from-field="uomConversion.roundingMode"/>
<if-not-empty field-name="uomConversion.roundingMode">
- <calculate field-name="roundedValue" type="Double" decimal-scale="${uomConversion.decimalScale}" rounding-mode="${uomConversion.roundingMode}">
+ <calculate field-name="roundedValue" type="Double" decimal-scale="${uomConversion.decimalScale}" rounding-mode="${roundingMode}">
<calcop operator="get" field-name="convertedValue"/>
</calculate>
<set field="convertedValue" from-field="roundedValue"/>