diff --git a/base/src/org/compiere/model/MAcctProcessor.java b/base/src/org/compiere/model/MAcctProcessor.java index 7d2f0cd4cb..a9f961b6c5 100644 --- a/base/src/org/compiere/model/MAcctProcessor.java +++ b/base/src/org/compiere/model/MAcctProcessor.java @@ -22,7 +22,6 @@ import java.sql.Timestamp; import java.util.List; import java.util.Properties; -import org.compiere.util.CLogger; import org.compiere.util.DB; import org.compiere.util.Msg; @@ -45,15 +44,11 @@ public class MAcctProcessor extends X_C_AcctProcessor */ public static MAcctProcessor[] getActive (Properties ctx) { - String whereClause = "IsActive=?"; - List list = new Query(ctx, MAcctProcessor.Table_Name,whereClause,null) - .setParameters(new Object[]{"Y"}).list(); + List list = new Query(ctx, MAcctProcessor.Table_Name, null, null) + .setOnlyActiveRecords(true) + .list(); return list.toArray(new MAcctProcessor[list.size()]); } // getActive - - /** Static Logger */ - private static CLogger s_log = CLogger.getCLogger (MAcctProcessor.class); - /** * Standard Construvtor