IDEMPIERE-171 Improve message when posting with wrong accounts

http://jira.idempiere.com/browse/IDEMPIERE-171
This commit is contained in:
Carlos Ruiz 2012-03-03 22:57:19 -05:00
parent 28b414d6be
commit a74d86e741
1 changed files with 3 additions and 0 deletions

View File

@ -644,18 +644,21 @@ public final class Fact
{
log.warning("No Element Value for " + account
+ ": " + line);
m_doc.p_Error = account.toString();
return false;
}
if (ev.isSummary())
{
log.warning("Cannot post to Summary Account " + ev
+ ": " + line);
m_doc.p_Error = ev.toString();
return false;
}
if (!ev.isActive())
{
log.warning("Cannot post to Inactive Account " + ev
+ ": " + line);
m_doc.p_Error = ev.toString();
return false;
}