IDEMPIERE-2543 Completing invoices paid in cash assigning inactive account
This commit is contained in:
parent
b084a39950
commit
2dfefe0ecd
|
@ -1718,6 +1718,7 @@ public class MInvoice extends X_C_Invoice implements DocAction
|
||||||
String whereClause = "AD_Org_ID=? AND C_Currency_ID=?";
|
String whereClause = "AD_Org_ID=? AND C_Currency_ID=?";
|
||||||
MBankAccount ba = new Query(getCtx(),MBankAccount.Table_Name,whereClause,get_TrxName())
|
MBankAccount ba = new Query(getCtx(),MBankAccount.Table_Name,whereClause,get_TrxName())
|
||||||
.setParameters(getAD_Org_ID(), getC_Currency_ID())
|
.setParameters(getAD_Org_ID(), getC_Currency_ID())
|
||||||
|
.setOnlyActiveRecords(true)
|
||||||
.setOrderBy("IsDefault DESC")
|
.setOrderBy("IsDefault DESC")
|
||||||
.first();
|
.first();
|
||||||
if (ba == null) {
|
if (ba == null) {
|
||||||
|
|
Loading…
Reference in New Issue