Commit 0ee0d98d 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@182661 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2b2f8e1f
......@@ -138,13 +138,15 @@ public class IndentConf extends ActionHandlerEJB implements IndentConfLocal, Ind
rs = null;
}
if(ls_emp_code__iapr.length() == 0)
//commented by Nandkumar gadkari on 26/03/18 To remove mandatory purchaser and approver employee code------------Start-------------
/*if(ls_emp_code__iapr.length() == 0)
{
errCode = "VTNOAPRRHT";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
//ls_errcode = 'VTNOAPRRHT~t'+'Not Authorised For Approval or Indent Approver is null'
}
}*/
//commented by Nandkumar gadkari on 26/03/18 To remove mandatory purchaser and approver employee code------------end-------------
}
sql = "SELECT EMP_CODE FROM USERS WHERE CODE = ? ";
......@@ -169,16 +171,19 @@ public class IndentConf extends ActionHandlerEJB implements IndentConfLocal, Ind
{
mstatus = "A";
}
else
//commented by Nandkumar gadkari on 26/03/18 To remove mandatory purchaser and approver employee code------------Start-------------
/*else
{
errCode = "VTEAINAPP";
errList.add( errCode );
errFields.add(childNodeName.toLowerCase());
}
}*/
//commented by Nandkumar gadkari on 26/03/18 To remove mandatory purchaser and approver employee code------------end-------------
if(errCode.length() == 0)
{
if(li_level.length() > 0 && !ls_login_emp.equalsIgnoreCase(ls_emp_code__iapr))
{ // CHANGES IN IF CONDITION by Nandkumar gadkari on 26/03/18 ---
if((ls_emp_code__iapr.length() > 0 && li_level.length() > 0 )&& !ls_login_emp.equalsIgnoreCase(ls_emp_code__iapr))
{
errCode = roleUser(ls_sitecode, ls_itemcode, userId, "IND", ls_runopt, conn);
}
......
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