Bug Fix [ 1759492 ] Null pointer in FactLine.java
This commit is contained in:
parent
23608a8e66
commit
9beefc2681
|
@ -426,26 +426,26 @@ public final class Fact
|
|||
{
|
||||
if (difference.isReversal())
|
||||
{
|
||||
line.setAccount(m_acctSchema, m_acctSchema.getDueTo_Acct(elementType));
|
||||
line.setAmtSource(m_doc.getC_Currency_ID(), Env.ZERO, difference.getPostBalance());
|
||||
line.setAccount(m_acctSchema, m_acctSchema.getDueTo_Acct(elementType));
|
||||
}
|
||||
else
|
||||
{
|
||||
line.setAccount(m_acctSchema, m_acctSchema.getDueFrom_Acct(elementType));
|
||||
line.setAmtSource(m_doc.getC_Currency_ID(), difference.getPostBalance(), Env.ZERO);
|
||||
line.setAccount(m_acctSchema, m_acctSchema.getDueFrom_Acct(elementType));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (difference.isReversal())
|
||||
{
|
||||
line.setAccount(m_acctSchema, m_acctSchema.getDueFrom_Acct(elementType));
|
||||
line.setAmtSource(m_doc.getC_Currency_ID(), difference.getPostBalance(), Env.ZERO);
|
||||
line.setAccount(m_acctSchema, m_acctSchema.getDueFrom_Acct(elementType));
|
||||
}
|
||||
else
|
||||
{
|
||||
line.setAccount(m_acctSchema, m_acctSchema.getDueTo_Acct(elementType));
|
||||
line.setAmtSource(m_doc.getC_Currency_ID(), Env.ZERO, difference.getPostBalance());
|
||||
line.setAccount(m_acctSchema, m_acctSchema.getDueTo_Acct(elementType));
|
||||
}
|
||||
}
|
||||
line.convert();
|
||||
|
|
Loading…
Reference in New Issue