Commit f708ee42 authored by agaikwad's avatar agaikwad

Added trim() condition


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105482 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8f0b4185
......@@ -1340,7 +1340,7 @@ public class SOrderAmdIC extends ValidatorEJB implements SOrderAmdICRemote,SOrde
errList.add(errcode);
errFields.add(childNodeName.toLowerCase());
}
else if(unitStd.equalsIgnoreCase(unit))
else if(unitStd.trim().equalsIgnoreCase(unit.trim()))
{
convQtyStduom = checkNull(genericUtility.getColumnValue("conv__qty_stduom", dom));
......@@ -1356,7 +1356,7 @@ public class SOrderAmdIC extends ValidatorEJB implements SOrderAmdICRemote,SOrde
errFields.add(childNodeName.toLowerCase());
}
}
else if(!unitStd.equalsIgnoreCase(unit))
else if(!unitStd.trim().equalsIgnoreCase(unit.trim()))
{
sql ="select count(*) from uomconv where (item_code = ? or item_code = 'X') " +
"and ((unit__fr = ? and unit__to = ?) or (unit__to = ? and unit__fr = ?)) ";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment