MAccount: FR 2214883 - minor improvement

This commit is contained in:
teo_sarca 2008-11-13 13:07:35 +00:00
parent 83a4714ba4
commit f62c418c53
1 changed files with 4 additions and 5 deletions

View File

@ -183,13 +183,12 @@ public class MAccount extends X_C_ValidCombination
whereClause.append(" AND UserElement2_ID=?");
params.add(UserElement2_ID);
}
whereClause.append(" AND IsActive='Y'");
// whereClause.append(" ORDER BY IsFullyQualified DESC");
MAccount existingAccount = new Query(ctx,MAccount.Table_Name,whereClause.toString(),null)
.setParameters(params).first();
MAccount existingAccount = new Query(ctx, MAccount.Table_Name, whereClause.toString(), null)
.setParameters(params)
.setOnlyActiveRecords(true)
.first();
// Existing
if (existingAccount != null)