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
This commit is contained in:
Si Chen
2006-09-18 18:25:10 +00:00
parent 34befdc9d3
commit 7a70238a67
2 changed files with 2 additions and 2 deletions
@@ -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);
@@ -365,7 +365,7 @@ under the License.
(<b>${uiLabelMap.OrderReference}:</b> ${gatewayResponse.referenceNum?if_exists}
<b>${uiLabelMap.OrderAvs}:</b> ${gatewayResponse.gatewayAvsResult?default("N/A")}
<b>${uiLabelMap.OrderScore}:</b> ${gatewayResponse.gatewayScoreResult?default("N/A")})
[<a href="/accounting/control/ViewGatewayResponse?paymentGatewayResponseId=${gatewayResponse.paymentGatewayResponseId}">${uiLabelMap.CommonDetails}</a>]
<a href="/accounting/control/ViewGatewayResponse?paymentGatewayResponseId=${gatewayResponse.paymentGatewayResponseId}&externalLoginKey=${externalLoginKey}" class="buttontext">${uiLabelMap.CommonDetails}</a>
<#if gatewayResponse_has_next><hr /></#if>
</#list>
</div>