Commit 43976c26 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@101646 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 47d9a9bb
...@@ -123,7 +123,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder ...@@ -123,7 +123,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder
String projindNo = ""; String projindNo = "";
String ProjStatus = ""; String ProjStatus = "";
String linnoprev = ""; String linnoprev = "";
String poStatus="";
String vouchcreated = ""; String vouchcreated = "";
String linepayterm = ""; String linepayterm = "";
String linepurmil = ""; String linepurmil = "";
...@@ -724,7 +724,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder ...@@ -724,7 +724,7 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder
ordDateStr = checkNull(genericUtility.getColumnValue("ord_date", dom1)); ordDateStr = checkNull(genericUtility.getColumnValue("ord_date", dom1));
itemSer = checkNull(genericUtility.getColumnValue("item_ser", dom)); itemSer = checkNull(genericUtility.getColumnValue("item_ser", dom));
suppCode = checkNull(genericUtility.getColumnValue("supp_code", dom)); suppCode = checkNull(genericUtility.getColumnValue("supp_code", dom));
{ {
sql = " select case when stop_business is null then 'N' else stop_business end From Item Where item_code = ? "; sql = " select case when stop_business is null then 'N' else stop_business end From Item Where item_code = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -751,6 +751,18 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder ...@@ -751,6 +751,18 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal,POrder
} }
else else
{ {
//Added by Dhiraj chavan.for purpose of allow to close purchase order those
//are open with having stop_business flag'yes'.(refer req#_D16ASUN002)
if(("O".equalsIgnoreCase(poStatus)||poStatus.equals("O"))&&("Y".equalsIgnoreCase(stopBusiness)))
{
errCode = this.isItem(siteCode, itemCode, modName,conn);
if (errCode != null && errCode.trim().length() > 0)
{
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
errCode = "VTIIC"; errCode = "VTIIC";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
......
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