From e813d2cca42e48c42abdc69576b9b5e34d9f2ed0 Mon Sep 17 00:00:00 2001 From: Nicolas Micoud <58596990+nmicoud@users.noreply.github.com> Date: Mon, 28 Jun 2021 16:04:57 +0200 Subject: [PATCH] IDEMPIERE-4843 : MInvoice.setBPartner method retrieves inactive contacts (#744) --- org.adempiere.base/src/org/compiere/model/MBPartner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base/src/org/compiere/model/MBPartner.java b/org.adempiere.base/src/org/compiere/model/MBPartner.java index 93d591d702..95195eb317 100644 --- a/org.adempiere.base/src/org/compiere/model/MBPartner.java +++ b/org.adempiere.base/src/org/compiere/model/MBPartner.java @@ -433,7 +433,7 @@ public class MBPartner extends X_C_BPartner implements ImmutablePOSupport return m_contacts; // ArrayList list = new ArrayList(); - final String sql = "SELECT * FROM AD_User WHERE C_BPartner_ID=? ORDER BY AD_User_ID"; + final String sql = "SELECT * FROM AD_User WHERE C_BPartner_ID=? AND IsActive = 'Y' ORDER BY AD_User_ID"; PreparedStatement pstmt = null; ResultSet rs = null; try