IDEMPIERE-2256 Unallocated Payments Report show payments allocated / IDEMPIERE-1702 / IDEMPIERE-659

This commit is contained in:
Carlos Ruiz 2014-10-22 10:10:34 -05:00
parent 77f6d8d7e3
commit e6136d9a5d
1 changed files with 2 additions and 2 deletions

View File

@ -173,9 +173,9 @@ public class DataEngine
String whereClause = rs.getString(4); String whereClause = rs.getString(4);
if (!Util.isEmpty(whereClause)) { if (!Util.isEmpty(whereClause)) {
if (whereClause.indexOf("@") == -1) { if (whereClause.indexOf("@") == -1) {
query.addRestriction(whereClause); queryCopy.addRestriction(whereClause);
} else { // replace context variables } else { // replace context variables
query.addRestriction(Env.parseContext(ctx, 0, whereClause.toString(), false, true)); queryCopy.addRestriction(Env.parseContext(ctx, 0, whereClause.toString(), false, true));
} }
} }
} }