Commit 59ef4653 authored by ngadkari's avatar ngadkari

To remove mandatory purchaser and approver employee code in indentIC validation

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@182529 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bff22cb6
......@@ -571,9 +571,9 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem
if("emp_code__iapr".equalsIgnoreCase(childNodeName))
{
System.out.println("----------- Inside emp_code_iapr -------------- ");
mval = checkNullAndTrim(genericUtility.getColumnValue("emp_code__iapr", dom));
if(mval.length() == 0)
mval = checkNullAndTrim(genericUtility.getColumnValue("emp_code__iapr", dom));
//Changes by Nandkumar gadkari on 23/03/18 To remove mandatory purchaser and approver employee code------------Start-------------
/*if(mval.length() == 0)
{
//Changed by wasim on 13-apr-2017 for changing error code
//errCode = "VMEMP1";
......@@ -582,8 +582,11 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem
errFields.add(childNodeName.toLowerCase());
}
else
{
mval1 = checkNullAndTrim(genericUtility.getColumnValue("site_code", dom));
{*/
if(mval.length() > 0)
{
mval1 = checkNullAndTrim(genericUtility.getColumnValue("site_code", dom));
errCode = getEmployeeResig(mval, mval1, conn);
System.out.println("----------- ErrCode inside emp_code__iapr ---------------"+errCode);
if(errCode.length() > 0)
......@@ -600,7 +603,7 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem
System.out.println("----------- Inside emp_code__pur -------------- ");
mval = checkNullAndTrim(genericUtility.getColumnValue("emp_code__pur", dom));
if(mval.length() == 0)
/*if(mval.length() == 0)
{
//Changed by wasim on 13-apr-2017 for changing error code
//errCode = "VMEMP2";
......@@ -609,6 +612,8 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem
errFields.add(childNodeName.toLowerCase());
}
else
{*/
if(mval.length() > 0)
{
mval1 = checkNullAndTrim(genericUtility.getColumnValue("site_code", dom));
errCode = getEmployeeResig(mval, mval1, conn);
......@@ -619,6 +624,7 @@ public class IndentIC extends ValidatorEJB implements IndentICLocal, IndentICRem
errFields.add(childNodeName.toLowerCase());
}
}
//Changes by Nandkumar gadkari on 23/03/18 To remove mandatory purchaser and approver employee code-------End-------------
}
if("conv__qty_stduom".equalsIgnoreCase(childNodeName))
......
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