Commit 82c82692 authored by prane's avatar prane

to validate QC Reqd is 'Y' then stk opt should not '0'

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@214878 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4c88c12b
......@@ -675,8 +675,8 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
{
childNodeValue = checkNullAndTrim(genericUtility.getColumnValue(childNodeName, dom));
stk_opt = checkNullAndTrim(genericUtility.getColumnValue("stk_opt", dom));
if(qc_reqd.equalsIgnoreCase("Y"))
{
//if(qc_reqd.equalsIgnoreCase("Y")) Pavan Rane 08jan20[commented as same condition used inside and qc_reqd variable not-initializes]
//{
if (childNodeValue == null || childNodeValue.trim().length() == 0)
{
errCode = "VTQCREQERR";
......@@ -685,14 +685,15 @@ public class ItemIC extends ValidatorEJB implements ItemICLocal, ItemICRemote {
}
else if (childNodeValue.equalsIgnoreCase("Y"))
{
if(!stk_opt.equalsIgnoreCase("2"))
//if(!stk_opt.equalsIgnoreCase("2")) Pavan Rane 08jan20[to validate QC Reqd is 'Y' then stk opt should not '0']
if("0".equalsIgnoreCase(stk_opt))
{
errCode = "VMSTKOPT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
//}
}
//pack_code
else if(childNodeName.equalsIgnoreCase("pack_code"))
......
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