IDEMPIERE-3349 GL Distribution generate positive posting regardless of the IsAllowNegativePosting flag. / integrate suggestion from Denis Kuznetsov
This commit is contained in:
parent
fd0d04a7af
commit
61dee84cb4
|
|
@ -790,8 +790,8 @@ public final class Fact
|
||||||
factLine.setUser2_ID(dl.getUser2_ID());
|
factLine.setUser2_ID(dl.getUser2_ID());
|
||||||
// F3P end
|
// F3P end
|
||||||
//
|
//
|
||||||
if (dl.getAmt().signum() < 0)
|
if (dLine.getAmtAcctCr().signum() != 0) // isCredit
|
||||||
factLine.setAmtSource(dLine.getC_Currency_ID(), null, dl.getAmt().abs());
|
factLine.setAmtSource(dLine.getC_Currency_ID(), null, dl.getAmt().negate());
|
||||||
else
|
else
|
||||||
factLine.setAmtSource(dLine.getC_Currency_ID(), dl.getAmt(), null);
|
factLine.setAmtSource(dLine.getC_Currency_ID(), dl.getAmt(), null);
|
||||||
factLine.setQty(dl.getQty());
|
factLine.setQty(dl.getQty());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue