Author: lektran
Date: Tue May 1 00:06:55 2007
New Revision: 533953
URL:
http://svn.apache.org/viewvc?view=rev&rev=533953Log:
Applied fix from trunk for revision: 533357
Modified:
ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
Modified: ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java?view=diff&rev=533953&r1=533952&r2=533953==============================================================================
--- ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java (original)
+++ ofbiz/branches/release4.0/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java Tue May 1 00:06:55 2007
@@ -2579,7 +2579,7 @@
if (Debug.verboseOn()) Debug.logVerbose("Unit Price : " + unitPrice + " / " + "Quantity : " + quantity, module);
result = unitPrice.multiply(quantity);
- if (orderItem.getString("orderItemTypeId").compareTo("RENTAL_ORDER_ITEM") == 0) { // retrieve related work effort when required.
+ if ("RENTAL_ORDER_ITEM".equals(orderItem.getString("orderItemTypeId"))) { // retrieve related work effort when required.
List WorkOrderItemFulfillments = null;
try {
WorkOrderItemFulfillments = orderItem.getRelatedCache("WorkOrderItemFulfillment");