Commit f130b699 authored by ssalve's avatar ssalve

Sarita : cnt = 0 for wfvaldata on 28FEB2018

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@181301 ce508802-f39f-4f6c-b175-0d175dae99d5
parent be0ed026
...@@ -413,6 +413,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -413,6 +413,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("order_ref")) else if(childNodeName.equalsIgnoreCase("order_ref"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
orderRef = checkNull(genericUtility.getColumnValue("order_ref", dom)); orderRef = checkNull(genericUtility.getColumnValue("order_ref", dom));
if(orderRef != null && orderRef.trim().length() > 0) if(orderRef != null && orderRef.trim().length() > 0)
{ {
...@@ -466,6 +468,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -466,6 +468,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("bill_date")) else if(childNodeName.equalsIgnoreCase("bill_date"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
billNo = checkNull(genericUtility.getColumnValue("bill_no", dom)); billNo = checkNull(genericUtility.getColumnValue("bill_no", dom));
siteCode = genericUtility.getColumnValue("site_code", dom); siteCode = genericUtility.getColumnValue("site_code", dom);
if(billNo!= null && (billNo.trim().length() > 0 )) if(billNo!= null && (billNo.trim().length() > 0 ))
...@@ -631,6 +635,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -631,6 +635,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("proj_code")) else if(childNodeName.equalsIgnoreCase("proj_code"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
projectCode = genericUtility.getColumnValue("proj_code", dom); projectCode = genericUtility.getColumnValue("proj_code", dom);
if(projectCode!= null && !"null".equals(projectCode) && (projectCode.trim().length() > 0 )) if(projectCode!= null && !"null".equals(projectCode) && (projectCode.trim().length() > 0 ))
{ {
...@@ -894,6 +900,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -894,6 +900,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("site_code")) else if(childNodeName.equalsIgnoreCase("site_code"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
siteCode = genericUtility.getColumnValue("site_code", dom); siteCode = genericUtility.getColumnValue("site_code", dom);
if(siteCode == null || (siteCode.length() == 0)) if(siteCode == null || (siteCode.length() == 0))
{ {
...@@ -948,6 +956,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -948,6 +956,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("site_code__for")) else if(childNodeName.equalsIgnoreCase("site_code__for"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
siteCodeFor = genericUtility.getColumnValue("site_code__for", dom); siteCodeFor = genericUtility.getColumnValue("site_code__for", dom);
if(siteCodeFor == null || (siteCodeFor.length() == 0)) if(siteCodeFor == null || (siteCodeFor.length() == 0))
{ {
...@@ -1002,6 +1012,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1002,6 +1012,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("fin_entity")) else if(childNodeName.equalsIgnoreCase("fin_entity"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
finEntity = checkNull(genericUtility.getColumnValue("fin_entity", dom)); finEntity = checkNull(genericUtility.getColumnValue("fin_entity", dom));
if(finEntity != null && (finEntity.trim().length() > 0)) if(finEntity != null && (finEntity.trim().length() > 0))
{ {
...@@ -1028,6 +1040,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1028,6 +1040,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("tax_class")) else if(childNodeName.equalsIgnoreCase("tax_class"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
taxClass = checkNull(genericUtility.getColumnValue("tax_class", dom)); taxClass = checkNull(genericUtility.getColumnValue("tax_class", dom));
if(taxClass!= null && (taxClass.trim().length() > 0 )) if(taxClass!= null && (taxClass.trim().length() > 0 ))
{ {
...@@ -1054,6 +1068,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1054,6 +1068,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("tax_chap")) else if(childNodeName.equalsIgnoreCase("tax_chap"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
taxChap = checkNull(genericUtility.getColumnValue("tax_chap", dom)); taxChap = checkNull(genericUtility.getColumnValue("tax_chap", dom));
if(taxChap!= null && (taxChap.trim().length() > 0 )) if(taxChap!= null && (taxChap.trim().length() > 0 ))
{ {
...@@ -1080,6 +1096,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1080,6 +1096,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("tax_env")) else if(childNodeName.equalsIgnoreCase("tax_env"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
taxEnv = checkNull(genericUtility.getColumnValue("tax_env", dom)); taxEnv = checkNull(genericUtility.getColumnValue("tax_env", dom));
if(taxEnv!= null && (taxEnv.trim().length() > 0 )) if(taxEnv!= null && (taxEnv.trim().length() > 0 ))
{ {
...@@ -1127,6 +1145,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1127,6 +1145,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("cr_term")) else if(childNodeName.equalsIgnoreCase("cr_term"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
crTerm = checkNull(genericUtility.getColumnValue("cr_term", dom)); crTerm = checkNull(genericUtility.getColumnValue("cr_term", dom));
if(crTerm == null || (crTerm.trim().length() == 0)) if(crTerm == null || (crTerm.trim().length() == 0))
{ {
...@@ -1159,6 +1179,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1159,6 +1179,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
} }
else if(childNodeName.equalsIgnoreCase("site_code__pay")) //Added by Abhijit Gaikwad else if(childNodeName.equalsIgnoreCase("site_code__pay")) //Added by Abhijit Gaikwad
{ {
//Added by sarita on 28FEB2018
cnt = 0;
String siteCodePay=""; String siteCodePay="";
siteCodePay = genericUtility.getColumnValue("site_code__pay", dom); siteCodePay = genericUtility.getColumnValue("site_code__pay", dom);
if(siteCodePay == null || (siteCodePay.length() == 0)) if(siteCodePay == null || (siteCodePay.length() == 0))
...@@ -1555,6 +1577,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1555,6 +1577,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("dept_code")) else if(childNodeName.equalsIgnoreCase("dept_code"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
deptCode = checkNull(genericUtility.getColumnValue("dept_code", dom2)); deptCode = checkNull(genericUtility.getColumnValue("dept_code", dom2));
acctCode = checkNull(genericUtility.getColumnValue("acct_code", dom2)); acctCode = checkNull(genericUtility.getColumnValue("acct_code", dom2));
if(deptCode != null && (deptCode.trim().length() > 0 )) if(deptCode != null && (deptCode.trim().length() > 0 ))
...@@ -1648,6 +1672,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1648,6 +1672,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("anal_code")) else if(childNodeName.equalsIgnoreCase("anal_code"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
analCode = checkNull(genericUtility.getColumnValue("anal_code", dom2)); analCode = checkNull(genericUtility.getColumnValue("anal_code", dom2));
acctCode = checkNull(genericUtility.getColumnValue("acct_code", dom2)); acctCode = checkNull(genericUtility.getColumnValue("acct_code", dom2));
cctrCode = checkNull(genericUtility.getColumnValue("cctr_code", dom2)); cctrCode = checkNull(genericUtility.getColumnValue("cctr_code", dom2));
...@@ -1704,6 +1730,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1704,6 +1730,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("anal_code__1")) else if(childNodeName.equalsIgnoreCase("anal_code__1"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
analCode1 = checkNull(genericUtility.getColumnValue("anal_code__1", dom2)); analCode1 = checkNull(genericUtility.getColumnValue("anal_code__1", dom2));
acctCode = checkNull(genericUtility.getColumnValue("acct_code", dom2)); acctCode = checkNull(genericUtility.getColumnValue("acct_code", dom2));
cctrCode = checkNull(genericUtility.getColumnValue("cctr_code", dom2)); cctrCode = checkNull(genericUtility.getColumnValue("cctr_code", dom2));
...@@ -1760,6 +1788,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1760,6 +1788,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("anal_code__2")) else if(childNodeName.equalsIgnoreCase("anal_code__2"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
analCode2 = checkNull(genericUtility.getColumnValue("anal_code__2", dom2)); analCode2 = checkNull(genericUtility.getColumnValue("anal_code__2", dom2));
acctCode = checkNull(genericUtility.getColumnValue("acct_code", dom2)); acctCode = checkNull(genericUtility.getColumnValue("acct_code", dom2));
cctrCode = checkNull(genericUtility.getColumnValue("cctr_code", dom2)); cctrCode = checkNull(genericUtility.getColumnValue("cctr_code", dom2));
...@@ -1816,6 +1846,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1816,6 +1846,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("bill_date")) else if(childNodeName.equalsIgnoreCase("bill_date"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
billNo = checkNull(genericUtility.getColumnValue("bill_no", dom2)); billNo = checkNull(genericUtility.getColumnValue("bill_no", dom2));
siteCode = checkNull(genericUtility.getColumnValue("site_code", dom2)); siteCode = checkNull(genericUtility.getColumnValue("site_code", dom2));
if(billNo!= null && (billNo.trim().length() > 0 )) if(billNo!= null && (billNo.trim().length() > 0 ))
...@@ -1968,6 +2000,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -1968,6 +2000,8 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("proj_code")) else if(childNodeName.equalsIgnoreCase("proj_code"))
{ {
//Added by sarita on 28FEB2018
cnt = 0;
projectCode = genericUtility.getColumnValue("proj_code", dom2); projectCode = genericUtility.getColumnValue("proj_code", dom2);
if(projectCode!= null && !"null".equals(projectCode) && (projectCode.trim().length() > 0 )) if(projectCode!= null && !"null".equals(projectCode) && (projectCode.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