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 log.warning("No Element Value for " + account
+ ": " + line); + ": " + line);
m_doc.p_Error = account.toString();
return false; return false;
} }
if (ev.isSummary()) if (ev.isSummary())
{ {
log.warning("Cannot post to Summary Account " + ev log.warning("Cannot post to Summary Account " + ev
+ ": " + line); + ": " + line);
m_doc.p_Error = ev.toString();
return false; return false;
} }
if (!ev.isActive()) if (!ev.isActive())
{ {
log.warning("Cannot post to Inactive Account " + ev log.warning("Cannot post to Inactive Account " + ev
+ ": " + line); + ": " + line);
m_doc.p_Error = ev.toString();
return false; return false;
} }