MAccount: FR 2214883 - minor improvement
This commit is contained in:
parent
83a4714ba4
commit
f62c418c53
|
@ -183,13 +183,12 @@ public class MAccount extends X_C_ValidCombination
|
||||||
whereClause.append(" AND UserElement2_ID=?");
|
whereClause.append(" AND UserElement2_ID=?");
|
||||||
params.add(UserElement2_ID);
|
params.add(UserElement2_ID);
|
||||||
}
|
}
|
||||||
whereClause.append(" AND IsActive='Y'");
|
|
||||||
// whereClause.append(" ORDER BY IsFullyQualified DESC");
|
// whereClause.append(" ORDER BY IsFullyQualified DESC");
|
||||||
|
|
||||||
|
MAccount existingAccount = new Query(ctx, MAccount.Table_Name, whereClause.toString(), null)
|
||||||
|
.setParameters(params)
|
||||||
MAccount existingAccount = new Query(ctx,MAccount.Table_Name,whereClause.toString(),null)
|
.setOnlyActiveRecords(true)
|
||||||
.setParameters(params).first();
|
.first();
|
||||||
|
|
||||||
// Existing
|
// Existing
|
||||||
if (existingAccount != null)
|
if (existingAccount != null)
|
||||||
|
|
Loading…
Reference in New Issue