IDEMPIERE-3224 Web service call ERROR: operator does not exist: numeric = character varying

This commit is contained in:
Diego Ruiz 2016-10-21 18:07:11 +02:00
parent cfb33c3e20
commit f4c6b6f89c
1 changed files with 4 additions and 0 deletions

View File

@ -446,6 +446,10 @@ public class AbstractService {
if (indDot == -1) {
if (varName.charAt(0) == '#') {
val = getCompiereService().getCtx().getProperty(varName);
if (varName.endsWith("_ID") && val != null) {
Integer intVal = Integer.parseInt((String) val);
val = intVal;
}
} else {
// If there is no table name, then it should be
// primitive data type