Commit 4e75f1a5 authored by dhirajchavan's avatar dhirajchavan

Added by Dhiraj chavan.for purpose of allow to close purchase order those...

Added by Dhiraj chavan.for purpose of allow to close purchase order those items are open with having stop_business flag'yes'.(refer req#_D16ASUN002)


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101659 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0b11de79
......@@ -736,6 +736,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder
{
stopBusiness = rs.getString(1);
}
System.out.println("stopBusiness@@"+stopBusiness);
rs.close();
rs = null;
pstmt.close();
......@@ -753,6 +754,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder
poStatus = rs.getString(1);
}
System.out.println("STATUS OF PO-->"+poStatus);
rs.close();
rs = null;
pstmt.close();
......@@ -768,15 +770,20 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder
}
else
{
if(("O".equalsIgnoreCase(poStatus)||poStatus.equals("O"))&&("Y".equalsIgnoreCase(stopBusiness)))
System.out.println("STOPBUSINESSS_FLAG='Y'@@@");
if((poStatus.equals("O"))&&("Y".equalsIgnoreCase(stopBusiness)))
{
System.out.println("@@allow to close with item stopflag=yes");
errCode = this.isItem(siteCode, itemCode, modName,conn);
if (errCode != null && errCode.trim().length() > 0)
{
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
break;
}
errCode = "VTIIC";
......
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