IDEMPIERE-4313 : WebServices : Yes-No output values not consistent be… (#85)
* IDEMPIERE-4313 : WebServices : Yes-No output values not consistent between Read and Query * Update code using Carlos's suggestion
This commit is contained in:
parent
3837a8e32b
commit
ed7952945a
|
@ -1390,8 +1390,13 @@ public class ModelADServiceImpl extends AbstractService implements ModelADServic
|
|||
if (po.get_Value(i) != null){
|
||||
if(po.get_Value(i) instanceof byte[]){
|
||||
dfid.setVal(new String(Base64.encodeBase64((byte[]) po.get_Value(i))));
|
||||
}else
|
||||
dfid.setVal(po.get_Value(i).toString());
|
||||
}
|
||||
else if(po.get_Value(i) instanceof Boolean) {
|
||||
dfid.setVal((Boolean)po.get_Value(i) ? "Y" : "N");
|
||||
}
|
||||
else {
|
||||
dfid.setVal(po.get_Value(i).toString());
|
||||
}
|
||||
}else
|
||||
dfid.setVal(null);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue