Commit e83f4144 authored by vvengurlekar's avatar vvengurlekar

SalesOrderIC.java - ValidatorEJB object removed as SalesOrderIC already extends ValidatorEJB


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@182271 ce508802-f39f-4f6c-b175-0d175dae99d5
parent cd2768a6
......@@ -41,7 +41,8 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
String winName = null;
FinCommon finCommon = new FinCommon();
DistCommon distCommon = new DistCommon();
ValidatorEJB validator = new ValidatorEJB();
//Commented by Varsha V because its not required as ValidatorEJB is extended
//ValidatorEJB validator = new ValidatorEJB();
UtilMethods utlMethods = new UtilMethods();
String isClassName = "";
String contractLineNo = "", contractNo = "";
......@@ -356,7 +357,8 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
} else {
errCode = validator.isCustomer(mSiteCode, custCode, modName, conn);
//removed validator. by Varsha V because its not required as ValidatorEJB is extended
errCode = isCustomer(mSiteCode, custCode, modName, conn);
if (errCode.trim().length() == 0) {
/*
* sql = "select stop_business from customer where cust_code = ?"; pstmt =
......@@ -461,7 +463,8 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
} else {
errCode = validator.isCustomer(mSiteCode, custCode, modName, conn);
//removed validator. by Varsha V because its not required as ValidatorEJB is extended
errCode = isCustomer(mSiteCode, custCode, modName, conn);
if (errCode.trim().length() == 0) {
sql = "select stop_business from customer where cust_code = ?";
pstmt = conn.prepareStatement(sql);
......@@ -2113,7 +2116,8 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
}
if ("I".equalsIgnoreCase(itemFlag)) {
errCode = validator.isItem(siteCode, itemCode, modName, conn);
//removed validator. by Varsha V because its not required as ValidatorEJB is extended
errCode = isItem(siteCode, itemCode, modName, conn);
if (errCode != null && errCode.trim().length() > 0) {
sql = "select active from item where item_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