IDEMPIERE-3702 Post if clearing is equal is not working on AP Payments AP2-140 / fix NPE when payment is zero
This commit is contained in:
parent
8c2088ba80
commit
b38367ee2f
|
|
@ -171,6 +171,7 @@ public class Doc_Payment extends Doc
|
||||||
|
|
||||||
// Avoid usage of clearing accounts
|
// Avoid usage of clearing accounts
|
||||||
// If both accounts and orgs are the same then remove the posting
|
// If both accounts and orgs are the same then remove the posting
|
||||||
|
if (dr != null && cr != null) {
|
||||||
MAccount acct_dr = dr.getAccount();
|
MAccount acct_dr = dr.getAccount();
|
||||||
MAccount acct_cr = cr.getAccount();
|
MAccount acct_cr = cr.getAccount();
|
||||||
int org_dr = dr.getAD_Org_ID();
|
int org_dr = dr.getAD_Org_ID();
|
||||||
|
|
@ -186,6 +187,7 @@ public class Doc_Payment extends Doc
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// End Avoid usage of clearing accounts
|
// End Avoid usage of clearing accounts
|
||||||
//
|
//
|
||||||
ArrayList<Fact> facts = new ArrayList<Fact>();
|
ArrayList<Fact> facts = new ArrayList<Fact>();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue