diff --git a/base/src/org/compiere/model/MTaxCategory.java b/base/src/org/compiere/model/MTaxCategory.java index 848b45fee7..5206fc42ed 100644 --- a/base/src/org/compiere/model/MTaxCategory.java +++ b/base/src/org/compiere/model/MTaxCategory.java @@ -74,6 +74,7 @@ public class MTaxCategory extends X_C_TaxCategory String whereClause = COLUMNNAME_C_TaxCategory_ID+"=? AND "+ COLUMNNAME_IsDefault+"='Y'"; List list = new Query(getCtx(), MTax.Table_Name, whereClause, get_TrxName()) .setParameters(new Object[]{getC_TaxCategory_ID()}) + .setOnlyActiveRecords(true) .list(); if (list.size() == 0) { throw new AdempiereException("NoDefaultTaxRate"); // Error - should be at least one default