Commit 80d8b655 authored by mmhatre's avatar mmhatre

when cust code dlv null throw error

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@209659 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 75033d8c
......@@ -1608,7 +1608,32 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
errFields.add(childNodeName.toLowerCase());
}
}
//added by manish mhatre on 15-oct-2019
//start manish
else if (childNodeName.equalsIgnoreCase("cust_code__dlv")) {
custCode = genericUtility.getColumnValue("cust_code__dlv", dom);
System.out.println("cust code dlv manish>>>>"+custCode);
if(custCode!=null && custCode.trim().length()>0)
{
sql="select count(*) as cnt from customer where cust_code= ? ";
pstmt=conn.prepareStatement(sql);
pstmt.setString(1, custCode);
rs=pstmt.executeQuery();
if(rs.next())
{
cnt=rs.getInt("cnt");
}
if(cnt==0)
{
errCode = "VTCUSTDLV";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
}
//end manish
} // end of else if loop
// end of for
break;// end of switch
......@@ -4845,6 +4870,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
// itmchange on dvl_city --Added By PriyankaC on 27/JUNE/2017 [--Start--]
else if ("dlv_city".equalsIgnoreCase(currentColumn.trim())) {
String custCode="";
dlvCity = checkNull(genericUtility.getColumnValue("dlv_city", dom));
System.out.println("city from hdr : [" + dlvCity + "]");
dlvCity = dlvCity.toUpperCase().trim();
......@@ -9539,6 +9565,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
}
}
// Added By Priyankac on 27JUNE2017.[--END--]
valueXmlString.append("</Detail1>");
break;
......
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