Commit dcaa1892 authored by prane's avatar prane

Stop business flag consideration in SOF

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200076 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e690781c
...@@ -732,7 +732,7 @@ public class SOrderForm extends ValidatorEJB implements SOrderFormLocal, SOrderF ...@@ -732,7 +732,7 @@ public class SOrderForm extends ValidatorEJB implements SOrderFormLocal, SOrderF
parentNode = parentNodeList.item(0); parentNode = parentNodeList.item(0);
childNodeList = parentNode.getChildNodes(); childNodeList = parentNode.getChildNodes();
childNodeListLength = childNodeList.getLength(); childNodeListLength = childNodeList.getLength();
String itemValue = "",lineNo = "",lineValue= "",updateFlag = ""; String itemValue = "",lineNo = "",lineValue= "",updateFlag = "", lsStopBusiness = "";
int lineNoInt = 0,lineValueInt = 0; int lineNoInt = 0,lineValueInt = 0;
NodeList itemNodeList = null,lineNoList = null,detail2List = null,childDetilList = null; NodeList itemNodeList = null,lineNoList = null,detail2List = null,childDetilList = null;
...@@ -917,6 +917,24 @@ public class SOrderForm extends ValidatorEJB implements SOrderFormLocal, SOrderF ...@@ -917,6 +917,24 @@ public class SOrderForm extends ValidatorEJB implements SOrderFormLocal, SOrderF
break; break;
} }
} }
//Pavan Rane 25apr19 [Stop business flag consideration in SOF]
sql = "select stop_business from item where item_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
rs = pstmt.executeQuery();
if (rs.next()) {
lsStopBusiness = checkNullandTrim(rs.getString("stop_business"));
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if ("Y".equalsIgnoreCase(lsStopBusiness)) {
errCode = "VTICC";
errString = getErrorString("cust_code",errCode,userId);
break;
}
//Pavan Rane 25apr19 end
sql = "select channel_partner,dis_link from customer" sql = "select channel_partner,dis_link from customer"
+ " where cust_code = ?"; + " where cust_code = ?";
......
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