IDEMPIERE-2543 Completing invoices paid in cash assigning inactive account

This commit is contained in:
Carlos Ruiz 2015-03-28 09:19:29 -05:00
parent b084a39950
commit 2dfefe0ecd
1 changed files with 1 additions and 0 deletions

View File

@ -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) {