Commit 30f6a739 authored by pchavan's avatar pchavan

PriyankaC: add validation for item_ser field.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@177678 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d274f80a
......@@ -947,6 +947,14 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
else if(childNodeName.equalsIgnoreCase("item_ser"))
{
childNodeValue = checkNullAndTrim(genericUtility.getColumnValue(childNodeName, dom));
//Added By PriyankaC on 04JAN18 [START]
if(childNodeValue==null || childNodeValue.trim().length() == 0)
{
errCode = "VMITMSERBK ";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
//Added By PriyankaC on 04JAN18 [END]
/* Comment By Nasruddin 19-SEP-16 START
if (childNodeValue == null || childNodeValue.trim().length() == 0)
......@@ -960,7 +968,7 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
}
Comment By Nasruddin 19-SEP-16 END */
if (childNodeValue != null && childNodeValue.trim().length() > 0)
else if (childNodeValue != null && childNodeValue.trim().length() > 0)
{
sql = "select count(*) from itemser where item_ser = ?";
......
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