IDEMPIERE-3229 - Wrong accounting facts by using the GL Distribution - Line_ID

is not transfered


In the method distribute() from Fact.java is the line_id for factLine with 0
defined and later not updated, so the
posting has always Line_ID=null in the destination-accounting-record.

Queries like taxcorrection by discount or write off are searching for accounting
facts with line_id = null and get wrong information.
This commit is contained in:
Hans Auler GmbH 2016-10-25 12:02:05 +02:00
parent e8d5bde8cb
commit 81e3e9afbf
1 changed files with 1 additions and 1 deletions

View File

@ -734,7 +734,7 @@ public final class Fact
if (!dl.isActive() || dl.getAmt().signum() == 0)
continue;
FactLine factLine = new FactLine (m_doc.getCtx(), m_doc.get_Table_ID(),
m_doc.get_ID(), 0, m_trxName);
m_doc.get_ID(), dLine.getLine_ID(), m_trxName);
// Set Info & Account
factLine.setDocumentInfo(m_doc, dLine.getDocLine());
factLine.setAccount(m_acctSchema, dl.getAccount());