IDEMPIERE-239

This commit is contained in:
Nicolas Micoud 2012-04-18 15:52:06 +02:00
parent a5fda83899
commit b0c67e8897
1 changed files with 2 additions and 0 deletions

View File

@ -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";
}