IDEMPIERE-4425 Find Window improvements (#224)
* IDEMPIERE-4425 Find Window improvements Fix for printing report parameters - it is printing OPERATOR_EQUAL on reports instead of = * IDEMPIERE-4425 Find Window improvements Previous commit broke the find function - must use SQL for Values
This commit is contained in:
parent
ab910e0dd2
commit
b0fbbb7a16
|
@ -480,6 +480,7 @@ public class MQuery implements Serializable, Cloneable
|
||||||
public static final String NULL = " IS NULL ";
|
public static final String NULL = " IS NULL ";
|
||||||
public static final String MSG_NULL = "OPERATOR_NULL";
|
public static final String MSG_NULL = "OPERATOR_NULL";
|
||||||
|
|
||||||
|
/* NOTE: Value is the SQL operator, and Name is the message that appears in Find window and reports */
|
||||||
/** All the Operators */
|
/** All the Operators */
|
||||||
public static final ValueNamePair[] OPERATORS = new ValueNamePair[] {
|
public static final ValueNamePair[] OPERATORS = new ValueNamePair[] {
|
||||||
new ValueNamePair (EQUAL, MSG_EQUAL), // 0 - EQUAL_INDEX
|
new ValueNamePair (EQUAL, MSG_EQUAL), // 0 - EQUAL_INDEX
|
||||||
|
@ -1331,7 +1332,7 @@ class Restriction implements Serializable
|
||||||
for (int i = 0; i < MQuery.OPERATORS.length; i++)
|
for (int i = 0; i < MQuery.OPERATORS.length; i++)
|
||||||
{
|
{
|
||||||
if (MQuery.OPERATORS[i].getValue().equals(Operator))
|
if (MQuery.OPERATORS[i].getValue().equals(Operator))
|
||||||
return MQuery.OPERATORS[i].getName();
|
return Msg.getMsg(Env.getCtx(), MQuery.OPERATORS[i].getName());
|
||||||
}
|
}
|
||||||
return Operator;
|
return Operator;
|
||||||
} // getInfoOperator
|
} // getInfoOperator
|
||||||
|
|
Loading…
Reference in New Issue