Commit 25bce5aa authored by ssalve's avatar ssalve

Sarita : Done changes for gtpl point no. 355 [remove mandatory validation of site_code__payable]

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@187492 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c69fc090
......@@ -1332,13 +1332,15 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
if (siteCodePay != null && siteCodePay.length() > 0)
{
// Modified by Jaffar on 21/05/2018 [To allow empty site code as requested from GTPL].End
if(siteCodePay == null || (siteCodePay.length() == 0))
//Commented and changes by sarita for gtpl point[355- Site_code__payable mandatory validation to be removed.] on 11 JUL 18 [START]
/*if(siteCodePay == null || (siteCodePay.length() == 0))
{
errList.add("VMSITECOD");
errFields.add(childNodeName.toLowerCase());
}
if(siteCodePay != null && (siteCodePay.trim().length() > 0))
{
{*/
//Commented and changes by sarita for gtpl point[355- Site_code__payable mandatory validation to be removed.] on 11 JUL 18 [END]
sql = " select count(*) from site where site_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,siteCodePay);
......@@ -1357,10 +1359,13 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
rs = null;
pstmt.close();
pstmt = null;
}
//}//Commented and changes by sarita on 11 JUL 18
// Added By PriyankaC on 20/02/2018 [START]
if(! siteCode.equalsIgnoreCase(siteCodePay))
//changes and commented by sarita for gtpl point[355- Site_code__payable mandatory validation to be removed.] on 11 JUL 18 [START]
//if(! siteCode.equalsIgnoreCase(siteCodePay))
if(! siteCode.trim().equalsIgnoreCase(siteCodePay.trim()))
//changes and commented by sarita for gtpl point[355- Site_code__payable mandatory validation to be removed.] on 11 JUL 18 [END]
{
System.out.println("inside condition of siteCodePay ::");
sql = "select count(*) from ibca_pay_ctrl where site_code__to = ? and site_code__from = ? ";
......
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