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())
|
if (difference.isReversal())
|
||||||
{
|
{
|
||||||
line.setAmtSource(m_doc.getC_Currency_ID(), Env.ZERO, difference.getPostBalance());
|
|
||||||
line.setAccount(m_acctSchema, m_acctSchema.getDueTo_Acct(elementType));
|
line.setAccount(m_acctSchema, m_acctSchema.getDueTo_Acct(elementType));
|
||||||
|
line.setAmtSource(m_doc.getC_Currency_ID(), Env.ZERO, difference.getPostBalance());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
line.setAmtSource(m_doc.getC_Currency_ID(), difference.getPostBalance(), Env.ZERO);
|
|
||||||
line.setAccount(m_acctSchema, m_acctSchema.getDueFrom_Acct(elementType));
|
line.setAccount(m_acctSchema, m_acctSchema.getDueFrom_Acct(elementType));
|
||||||
|
line.setAmtSource(m_doc.getC_Currency_ID(), difference.getPostBalance(), Env.ZERO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (difference.isReversal())
|
if (difference.isReversal())
|
||||||
{
|
{
|
||||||
line.setAmtSource(m_doc.getC_Currency_ID(), difference.getPostBalance(), Env.ZERO);
|
|
||||||
line.setAccount(m_acctSchema, m_acctSchema.getDueFrom_Acct(elementType));
|
line.setAccount(m_acctSchema, m_acctSchema.getDueFrom_Acct(elementType));
|
||||||
|
line.setAmtSource(m_doc.getC_Currency_ID(), difference.getPostBalance(), Env.ZERO);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
line.setAmtSource(m_doc.getC_Currency_ID(), Env.ZERO, difference.getPostBalance());
|
|
||||||
line.setAccount(m_acctSchema, m_acctSchema.getDueTo_Acct(elementType));
|
line.setAccount(m_acctSchema, m_acctSchema.getDueTo_Acct(elementType));
|
||||||
|
line.setAmtSource(m_doc.getC_Currency_ID(), Env.ZERO, difference.getPostBalance());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
line.convert();
|
line.convert();
|
||||||
|
|
Loading…
Reference in New Issue