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