IDEMPIERE-2072 get number of non business days between 2 dates / forgot the IsActive condition

This commit is contained in:
Carlos Ruiz 2014-07-23 12:58:33 -05:00
parent 7bb8143f15
commit 9d8b8e11b7
1 changed files with 1 additions and 1 deletions

View File

@ -848,7 +848,7 @@ public class TimeUtil
endDate = temp;
}
final String sql = "SELECT Date1 FROM C_NonBusinessDay WHERE AD_Client_ID=? AND Date1 BETWEEN ? AND ? AND COALESCE(C_Country_ID,0) IN (0, ?)";
final String sql = "SELECT Date1 FROM C_NonBusinessDay WHERE IsActive='Y' AND AD_Client_ID=? AND Date1 BETWEEN ? AND ? AND COALESCE(C_Country_ID,0) IN (0, ?)";
List<Object> nbd = DB.getSQLValueObjectsEx(trxName, sql, clientID, startDate, endDate, MCountry.getDefault(Env.getCtx()).getC_Country_ID());
GregorianCalendar cal = new GregorianCalendar();