From 937eaaa6cee1ce6e21184031269be2a858f6a182 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 30 Jul 2020 17:06:14 +0200 Subject: [PATCH] IDEMPIERE-874 Suspense Account is Posted with Wrong Org on GL Journal (#190) --- org.adempiere.base/src/org/compiere/acct/Fact.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.adempiere.base/src/org/compiere/acct/Fact.java b/org.adempiere.base/src/org/compiere/acct/Fact.java index 6081805591..c3263ec454 100644 --- a/org.adempiere.base/src/org/compiere/acct/Fact.java +++ b/org.adempiere.base/src/org/compiere/acct/Fact.java @@ -310,6 +310,7 @@ public final class Fact FactLine line = new FactLine (m_doc.getCtx(), m_doc.get_Table_ID(), m_doc.get_ID(), 0, m_trxName); line.setDocumentInfo(m_doc, null); + line.setAD_Org_ID(m_doc.getAD_Org_ID()); line.setPostingType(m_postingType); // Account @@ -586,6 +587,7 @@ public final class Fact m_doc.get_ID(), 0, m_trxName); line.setDocumentInfo (m_doc, null); line.setPostingType (m_postingType); + line.setAD_Org_ID(m_doc.getAD_Org_ID()); line.setAccount (m_acctSchema, m_acctSchema.getCurrencyBalancing_Acct()); // Amount