diff --git a/base/src/org/compiere/model/MDocType.java b/base/src/org/compiere/model/MDocType.java
index 4b69cf7d3b..f56f4953ae 100644
--- a/base/src/org/compiere/model/MDocType.java
+++ b/base/src/org/compiere/model/MDocType.java
@@ -29,6 +29,8 @@ import org.compiere.util.Env;
*
* @author Jorg Janke
* @author Karsten Thiemann FR [ 1782412 ]
+ * @author Teo Sarca, www.arhipac.ro
+ *
BF [ 2476824 ] MDocType.getOfDocBaseType should return ONLY active records
* @version $Id: MDocType.java,v 1.3 2006/07/30 00:54:54 jjanke Exp $
*/
public class MDocType extends X_C_DocType
@@ -44,6 +46,7 @@ public class MDocType extends X_C_DocType
String whereClause = "AD_Client_ID=? AND DocBaseType=?";
List list = new Query(ctx, Table_Name, whereClause, null)
.setParameters(new Object[]{Env.getAD_Client_ID(ctx), DocBaseType})
+ .setOnlyActiveRecords(true)
.setOrderBy("IsDefault DESC, C_DocType_ID")
.list();
return list.toArray(new MDocType[list.size()]);