IDEMPIERE-171 Improve message when posting with wrong accounts
http://jira.idempiere.com/browse/IDEMPIERE-171
This commit is contained in:
parent
28b414d6be
commit
a74d86e741
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue