Commit e040638f authored by pchavan's avatar pchavan

remove validation on TRAN_CODE__PAY field.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@194933 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 45bff4ef
...@@ -266,7 +266,10 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T ...@@ -266,7 +266,10 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T
cnt = rs.getInt(1); cnt = rs.getInt(1);
if(cnt == 0) if(cnt == 0)
{ {
errCode = "VMGRPCD"; //Changed By PriyankaC to add correct description.[START]
errCode = "INVGPCO";
//errCode = "VMGRPCD";
//Changed By PriyankaC to add correct description.[END]
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
...@@ -278,24 +281,29 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T ...@@ -278,24 +281,29 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T
} }
} }
} }
else if(childNodeName.equalsIgnoreCase("tran_code__pay")) else if(childNodeName.equalsIgnoreCase("tran_code__pay"))
{ {
tranCodePay = genericUtility.getColumnValue("tran_code__pay", dom); tranCodePay = genericUtility.getColumnValue("tran_code__pay", dom);
tranCode = genericUtility.getColumnValue("tran_code", dom); tranCode = genericUtility.getColumnValue("tran_code", dom);
//Changed By PriyankaC to remove the null validation on 24DEC2018.[START]
/*
if(tranCodePay == null || tranCodePay.trim().length() == 0) if(tranCodePay == null || tranCodePay.trim().length() == 0)
{ {
System.out.println("enter for null validation tran code pay"); System.out.println("enter for null validation tran code pay");
errCode = "VEPAYTO"; errCode = "VEPAYTO";
errList.add(errCode); errList.add(errCode);
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
}
}*/
//added by priyanka as per pb code //added by priyanka as per pb code
else if((tranCodePay!=null && tranCodePay.trim().length()>0) &&(tranCode!=null && tranCode.trim().length()>0)) //else if((tranCodePay!=null && tranCodePay.trim().length()>0) &&(tranCode!=null && tranCode.trim().length()>0))
if((tranCodePay!=null && tranCodePay.trim().length()>0) &&(tranCode!=null && tranCode.trim().length()>0))
{ {
if(!tranCodePay.equals(tranCode)) //if(!tranCodePay.equals(tranCode))
if(!tranCodePay.trim().equals(tranCode.trim()))
//Changed By PriyankaC on 24DEC2018 [END]
{ {
sql = " select count(*) from transporter where tran_code = ? "; sql = " select count(*) from transporter where tran_code = ? ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
...@@ -317,7 +325,6 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T ...@@ -317,7 +325,6 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T
pstmt = null; pstmt = null;
} }
} }
} }
else if(childNodeName.equalsIgnoreCase("site_code__pay")) else if(childNodeName.equalsIgnoreCase("site_code__pay"))
{ {
...@@ -353,7 +360,6 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T ...@@ -353,7 +360,6 @@ public class TransporterIC extends ValidatorEJB implements TransporterICLocal, T
else if(childNodeName.equalsIgnoreCase("stan_code")) else if(childNodeName.equalsIgnoreCase("stan_code"))
{ {
stanCode = genericUtility.getColumnValue("stan_code", dom); stanCode = genericUtility.getColumnValue("stan_code", dom);
if(stanCode != null && stanCode.trim().length() > 0 ) if(stanCode != null && stanCode.trim().length() > 0 )
......
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