IDEMPIERE-30 Use ValidFrom date when selecting Tax

This commit is contained in:
Carlos Ruiz 2012-08-29 18:15:16 -05:00
parent 3c4648f0c4
commit 9f30dab0b6
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public class MTax extends X_C_Tax
//FR: [ 2214883 ] Remove SQL code and Replace for Query - red1
List<MTax> list = new Query(ctx, I_C_Tax.Table_Name, null, null)
.setClient_ID()
.setOrderBy("C_Country_ID, C_Region_ID, To_Country_ID, To_Region_ID")
.setOrderBy("C_Country_ID, C_Region_ID, To_Country_ID, To_Region_ID, ValidFrom DESC")
.setOnlyActiveRecords(true)
.list();
for (MTax tax : list)