From 7a70238a67f584e89c8fa94ab5bb8a03bd432966 Mon Sep 17 00:00:00 2001 From: Si Chen Date: Mon, 18 Sep 2006 18:25:10 +0000 Subject: [PATCH] Sort orders on order list by date instead of orderId, which can be unreliable if there are multiple instances running at the same time git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@447495 13f79535-47bb-0310-9956-ffa450edef68 --- .../order/webapp/ordermgr/WEB-INF/actions/order/orderlist.bsh | 2 +- applications/order/webapp/ordermgr/order/orderheader.ftl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderlist.bsh b/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderlist.bsh index 1927239182..b3cb71d27a 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderlist.bsh +++ b/applications/order/webapp/ordermgr/WEB-INF/actions/order/orderlist.bsh @@ -145,7 +145,7 @@ if ((typeConditions.size() > 0) && (statusConditions.size() > 0)) { allConditions.add(typeConditionsList); } queryConditionsList = new EntityConditionList(allConditions, EntityOperator.AND); -orderHeaderList = delegator.findByCondition("OrderHeader", queryConditionsList, null, UtilMisc.toList("orderId DESC")); +orderHeaderList = delegator.findByCondition("OrderHeader", queryConditionsList, null, UtilMisc.toList("orderDate DESC")); context.put("orderHeaderList", orderHeaderList); locale = UtilHttp.getLocale(request); diff --git a/applications/order/webapp/ordermgr/order/orderheader.ftl b/applications/order/webapp/ordermgr/order/orderheader.ftl index 19bb102df5..0893b38957 100644 --- a/applications/order/webapp/ordermgr/order/orderheader.ftl +++ b/applications/order/webapp/ordermgr/order/orderheader.ftl @@ -365,7 +365,7 @@ under the License. (${uiLabelMap.OrderReference}: ${gatewayResponse.referenceNum?if_exists} ${uiLabelMap.OrderAvs}: ${gatewayResponse.gatewayAvsResult?default("N/A")} ${uiLabelMap.OrderScore}: ${gatewayResponse.gatewayScoreResult?default("N/A")}) - [${uiLabelMap.CommonDetails}] + ${uiLabelMap.CommonDetails} <#if gatewayResponse_has_next>