[OFBiz] SVN: r6909 - trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return
sichen@svn.ofbiz.org
sichen at svn.ofbiz.org
Fri Mar 3 12:40:42 CST 2006
Author: sichen
Date: 2006-03-03 12:40:40 -0600 (Fri, 03 Mar 2006)
New Revision: 6909
Modified:
trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnHeader.bsh
Log:
Fixed bug in returnHeader.bsh where the orderRoles are being filtered by date when the entity has no dates to filter by, and a typo.
Modified: trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnHeader.bsh
===================================================================
--- trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnHeader.bsh 2006-03-03 18:32:51 UTC (rev 6908)
+++ trunk/applications/order/webapp/ordermgr/WEB-INF/actions/return/returnHeader.bsh 2006-03-03 18:40:40 UTC (rev 6909)
@@ -95,9 +95,8 @@
orderHeader = null;
if (orderId != null) {
orderRoles = delegator.findByAnd("OrderRole", UtilMisc.toMap("orderId", orderId, "roleTypeId", "BILL_TO_CUSTOMER"));
- orderRoles = EntityUtil.filterByDate(orderRoles);
orderRole = EntityUtil.getFirst(orderRoles);
- orderHeader = delegator.findByPrimaryKeyCache("OrderHeader", Utilmisc.toMap("orderId", orderId));
+ orderHeader = delegator.findByPrimaryKeyCache("OrderHeader", UtilMisc.toMap("orderId", orderId));
}
context.put("orderRole", orderRole);
context.put("orderHeader", orderHeader);
More information about the Svn
mailing list