Commit b3a1d7aa authored by prane's avatar prane

to validate ref no should not be same with old ref no

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@213330 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bc6f34c9
...@@ -238,7 +238,8 @@ public class PriceListTranIC extends ValidatorEJB implements ...@@ -238,7 +238,8 @@ public class PriceListTranIC extends ValidatorEJB implements
if (childNodeName.equalsIgnoreCase("ref_no_old")) { if (childNodeName.equalsIgnoreCase("ref_no_old")) {
//System.out.println(":::childNodeName" + childNodeName); //System.out.println(":::childNodeName" + childNodeName);
BaseLogger.log("3", null, null,":::childNodeName" + childNodeName); BaseLogger.log("3", null, null,":::childNodeName" + childNodeName);
refOld = chkNull(genericUtility.getColumnValue("ref_no_old",dom)); refOld = E12GenericUtility.checkNull(genericUtility.getColumnValue("ref_no_old",dom));
refNo = E12GenericUtility.checkNull(genericUtility.getColumnValue("ref_no", dom));
if(refOld.length() == 0) if(refOld.length() == 0)
{ {
...@@ -247,6 +248,13 @@ public class PriceListTranIC extends ValidatorEJB implements ...@@ -247,6 +248,13 @@ public class PriceListTranIC extends ValidatorEJB implements
errList.add("VTCIRCUNL"); errList.add("VTCIRCUNL");
errFields.add(childNodeName.toLowerCase()); errFields.add(childNodeName.toLowerCase());
} }
//Pavan R 6dec19 start [to validate ref no should not be same with old ref no]
if(refOld.equals(refNo))
{
errList.add("VTDUPREFNO");
errFields.add(childNodeName.toLowerCase());
}
//Pavan R 6dec19 end [to validate ref no should not be same with old ref no]
/*refOld = refOld == null ? "" : refOld.trim(); /*refOld = refOld == null ? "" : refOld.trim();
System.out.println(":::ref No old:: " + refOld); System.out.println(":::ref No old:: " + refOld);
......
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