svn commit: r604420 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r604420 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

bibryam
Author: bibryam
Date: Sat Dec 15 04:21:55 2007
New Revision: 604420

URL: http://svn.apache.org/viewvc?rev=604420&view=rev
Log:
Applied my patch from OFBIZ-1497 "Bug in getOrderItemSubTotal method used with RENTAL_ORDER_ITEM"

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java?rev=604420&r1=604419&r2=604420&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderReadHelper.java Sat Dec 15 04:21:55 2007
@@ -2432,7 +2432,7 @@
                 // retrieve related work effort when required.
                 List WorkOrderItemFulfillments = null;
                 try {
-                    WorkOrderItemFulfillments = orderItem.getRelatedCache("WorkOrderItemFulfillment");
+                    WorkOrderItemFulfillments = orderItem.getDelegator().findByAndCache("WorkOrderItemFulfillment", UtilMisc.toMap("orderId", orderItem.getString("orderId"), "orderItemSeqId", orderItem.getString("orderItemSeqId")));
                 } catch (GenericEntityException e) {}
                 Iterator iter = WorkOrderItemFulfillments.iterator();
                 if (iter.hasNext())    {