Author: sichen Date: Wed Mar 28 12:20:44 2007 New Revision: 523441 URL: http://svn.apache.org/viewvc?view=rev&rev=523441 Log: fix a bug where returns for less than the purchase price could not be created
Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml?view=diff&rev=523441&r1=523440&r2=523441 ============================================================================== --- ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml (original) +++ ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderReturnServices.xml Wed Mar 28 12:20:44 2007 @@ -281,9 +281,6 @@ <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">