fix a bug where returns for less than the purchase price could not be created

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@523441 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Si Chen
2007-03-28 19:20:44 +00:00
parent 6987aa95c2
commit fe1ad045bd
@@ -281,9 +281,6 @@ under the License.
<calcop operator="get" field-name="returnablePrice"/>
</calcop>
</calculate>
<if-compare-field field-name="returnPriceDelta" operator="less" to-field-name="zero" type="Double">
<calculate field-name="returnPriceDelta" type="Double"><calcop field-name="returnPriceDelta" operator="negative"/></calculate>
</if-compare-field>
<!-- just checking greater-equals sometimes returns an error if the difference is actually zero -->
<if-compare-field field-name="returnPriceDelta" operator="not-equals" to-field-name="zero" type="Double">