fixes BUG-44540:Added order by clause in getLastCumulatedCosting
authorinigo_lerga <inigo.lerga@openbravo.com>
Mon, 06 Jul 2020 16:45:12 +0200
changeset 37500 c6a76f903725
parent 37499 762a3b290f85
child 37501 cfb8b02695d2
fixes BUG 44540:Added order by clause in getLastCumulatedCosting
src/org/openbravo/costing/AverageAlgorithm.java
--- a/src/org/openbravo/costing/AverageAlgorithm.java	Fri Jul 17 14:40:46 2020 +0200
+++ b/src/org/openbravo/costing/AverageAlgorithm.java	Mon Jul 06 16:45:12 2020 +0200
@@ -327,7 +327,8 @@
     //@formatter:off
     hql +=
             " order by startingDate desc," +
-            "   endingDate desc";
+            "   endingDate desc," +
+            "   creationDate desc";
     //@formatter:on
 
     final OBQuery<Costing> costQry = OBDal.getInstance()