IDEMPIERE-4843 : MInvoice.setBPartner method retrieves inactive contacts (#744)

This commit is contained in:
Nicolas Micoud 2021-06-28 16:04:57 +02:00 committed by GitHub
parent c94583f0f1
commit e813d2cca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ public class MBPartner extends X_C_BPartner implements ImmutablePOSupport
return m_contacts;
//
ArrayList<MUser> list = new ArrayList<MUser>();
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