Commit dc322077 authored by pchavan's avatar pchavan

Add checkNullandTrim method for side code .

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@179367 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 29104536
......@@ -1421,8 +1421,10 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
rs = pstmt.executeQuery();
if (rs.next())
{
site = rs.getString("site_code");
//Change By PriyankaC on 30JAN2018..[START]
//site = rs.getString("site_code");
site = checkNullandTrim(rs.getString("site_code"));
//Change By PriyankaC on 30JAN2018..[END]
}
rs.close();
......@@ -1436,12 +1438,12 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
errFields.add(childNodeName.toLowerCase());
}
if (!siteCode.equalsIgnoreCase(site))
//if (!(siteCode).trim().equalsIgnoreCase(site)) //Change By PriyankaC on 30JAN2018..
if (!checkNullandTrim(siteCode).equalsIgnoreCase(site))
{
errCode = "VTPORD6";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
......
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