Commit 31150f37 authored by pchavan's avatar pchavan

Add new condition and validation for site_code_pay field.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@180750 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6778ff04
...@@ -1187,6 +1187,35 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1187,6 +1187,35 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
// Added By PriyankaC on 20/02/2018 [START]
if(! siteCode.equalsIgnoreCase(siteCodePay))
{
System.out.println("inside condition of siteCodePay ::");
sql = "select count(*) from ibca_pay_ctrl where site_code__to = ? and site_code__from = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,siteCodePay);
pstmt.setString(2,siteCode);
rs = pstmt.executeQuery();
if(rs.next())
{
cnt = rs.getInt(1);
if(cnt == 0)
{
System.out.println("counterr ::" +cnt);
errCode = "VTSITEREQ";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
}
// Added By PriyankaC on 20/02/2018 [END]
if(errCode == null || (errCode.trim().length() == 0)) if(errCode == null || (errCode.trim().length() == 0))
{ {
tranDate = genericUtility.getColumnValue("tran_date", dom); tranDate = genericUtility.getColumnValue("tran_date", dom);
......
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