Commit 0f43c64c authored by wansari's avatar wansari

W16IBAS007 updated IndentIC for message code in wfValdata


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105332 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7d6d25e0
...@@ -265,14 +265,20 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem ...@@ -265,14 +265,20 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem
{ {
cnt = 0; cnt = 0;
mval = checkNullAndTrim(genericUtility.getColumnValue("item_code__mfg", dom)); mval = checkNullAndTrim(genericUtility.getColumnValue("item_code__mfg", dom));
cnt = getCount("ITEM", "ITEM_CODE", mval, conn);
if(cnt == 0) if(mval.length() > 0)
{ {
errCode = "VMITEM1"; cnt = getCount("ITEM", "ITEM_CODE", mval, conn);
errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); if(cnt == 0)
} {
//Changed by wasim on 13-04-2017 for changing error code for item_code__mfg
//errCode = "VMITEM1";
errCode = "VMITEMMFG";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
} }
if("item_code".equalsIgnoreCase(childNodeName)) if("item_code".equalsIgnoreCase(childNodeName))
{ {
...@@ -566,7 +572,9 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem ...@@ -566,7 +572,9 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem
if(mval.length() == 0) if(mval.length() == 0)
{ {
errCode = "VMEMP1"; //Changed by wasim on 13-apr-2017 for changing error code
//errCode = "VMEMP1";
errCode = "VMINDAPRV";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
...@@ -591,7 +599,9 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem ...@@ -591,7 +599,9 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem
if(mval.length() == 0) if(mval.length() == 0)
{ {
errCode = "VMEMP2"; //Changed by wasim on 13-apr-2017 for changing error code
//errCode = "VMEMP2";
errCode = "VMINEMPPUR";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
...@@ -1852,7 +1862,9 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem ...@@ -1852,7 +1862,9 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem
} }
if(count == 0) if(count == 0)
{ {
errCode = "VMEMP9"; //Changed by wasim on 13-apr-2017 for changing error code
//errCode = "VMEMP9";
errCode = "VMEMP1";
} }
else else
{ {
......
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