diff --git a/org.adempiere.base/src/org/compiere/acct/Doc.java b/org.adempiere.base/src/org/compiere/acct/Doc.java index 84387501f0..bd1a897ab3 100644 --- a/org.adempiere.base/src/org/compiere/acct/Doc.java +++ b/org.adempiere.base/src/org/compiere/acct/Doc.java @@ -457,6 +457,8 @@ public abstract class Doc + get_ID() + ", Force=" + force + ",RePost=" + repost); if (force) return "Cannot Lock - ReSubmit"; + if (DB.getSQLValueStringEx(trxName, "SELECT IsActive FROM " + get_TableName() + " WHERE " + get_TableName() + "_ID=" + get_ID()).equals("N")) + return "Impossible to post deactivated document"; return "Cannot Lock - ReSubmit or RePost with Force"; }