IDEMPIERE-4440 NPE in DocAllocationHdr (#241)
This commit is contained in:
parent
dcd7d6a41e
commit
e93cdcb38c
|
@ -420,6 +420,7 @@ public class Doc_AllocationHdr extends Doc
|
|||
getC_Currency_ID(), null, line.getAmtSource().negate());
|
||||
if (fl != null && payment != null)
|
||||
fl.setAD_Org_ID(payment.getAD_Org_ID());
|
||||
if (fl != null)
|
||||
allocPayAccounted = allocPayAccounted.add(fl.getAcctBalance().negate());
|
||||
}
|
||||
else if (isUsingClearing && line.getC_CashLine_ID() != 0) // Avoid usage of clearing accounts
|
||||
|
|
Loading…
Reference in New Issue