Commit f1a1c6d3 authored by smanohar's avatar smanohar

terr_code trim before validation removed as it is varchar2(5)

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214225 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6f1df20b
...@@ -551,7 +551,9 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal ...@@ -551,7 +551,9 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
else if (childNodeName.equalsIgnoreCase("terr_code")) { else if (childNodeName.equalsIgnoreCase("terr_code")) {
String lsTerrCode = ""; String lsTerrCode = "";
lsTerrCode = checkNull(genericUtility.getColumnValue("terr_code", dom)); // 28-dec-2019 manoharan terr_code is varchar2(5) so trim should not be done
//lsTerrCode = checkNull(genericUtility.getColumnValue("terr_code", dom));
lsTerrCode = genericUtility.getColumnValue("terr_code", dom);
if (lsTerrCode != null && lsTerrCode.trim().length() > 0) { if (lsTerrCode != null && lsTerrCode.trim().length() > 0) {
sql = "select count(*) as cnt from territory where terr_code =?"; sql = "select count(*) as cnt from territory where terr_code =?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
......
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