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:
parent
e8d5bde8cb
commit
81e3e9afbf
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue