From a74d86e74160c768410a98f04728cbfa024f82db Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 3 Mar 2012 22:57:19 -0500 Subject: [PATCH] IDEMPIERE-171 Improve message when posting with wrong accounts http://jira.idempiere.com/browse/IDEMPIERE-171 --- org.adempiere.base/src/org/compiere/acct/Fact.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/acct/Fact.java b/org.adempiere.base/src/org/compiere/acct/Fact.java index ea298030fd..d87b7a0816 100644 --- a/org.adempiere.base/src/org/compiere/acct/Fact.java +++ b/org.adempiere.base/src/org/compiere/acct/Fact.java @@ -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; }