From 2dfefe0ecd58ebd5dd8b6b28ee168805f96e4f2d Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Sat, 28 Mar 2015 09:19:29 -0500 Subject: [PATCH] IDEMPIERE-2543 Completing invoices paid in cash assigning inactive account --- org.adempiere.base/src/org/compiere/model/MInvoice.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.adempiere.base/src/org/compiere/model/MInvoice.java b/org.adempiere.base/src/org/compiere/model/MInvoice.java index e309535460..9163f41b3b 100644 --- a/org.adempiere.base/src/org/compiere/model/MInvoice.java +++ b/org.adempiere.base/src/org/compiere/model/MInvoice.java @@ -1718,6 +1718,7 @@ public class MInvoice extends X_C_Invoice implements DocAction String whereClause = "AD_Org_ID=? AND C_Currency_ID=?"; MBankAccount ba = new Query(getCtx(),MBankAccount.Table_Name,whereClause,get_TrxName()) .setParameters(getAD_Org_ID(), getC_Currency_ID()) + .setOnlyActiveRecords(true) .setOrderBy("IsDefault DESC") .first(); if (ba == null) {