Commit 7015fa02 authored by prane's avatar prane

In case the values are not specified not to validate on...

In case the values are not specified not to validate on columns(cctr_code__bal, cctr_code, anal_code)

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@205123 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1c988fc5
......@@ -266,7 +266,8 @@ public class PaymentExpenseEJB extends ValidatorEJB implements PaymentExpenseLoc
{
cctrCodeBal = checkNull(genericUtility.getColumnValue("cctr_code__bal",dom));
acctCodeBal = checkNull(genericUtility.getColumnValue("acct_code__bal",dom));
if(cctrCodeBal != null && cctrCodeBal.trim().length() > 0) //Pavan Rane 13aug19[in case the values are not specified not to validate]
{
errCode = finCommon.isCctrCode(acctCodeBal, cctrCodeBal, tranSeries, conn);
if(errCode != null && errCode.trim().length() > 0)
{
......@@ -279,6 +280,7 @@ public class PaymentExpenseEJB extends ValidatorEJB implements PaymentExpenseLoc
}
}
}
}
else if("ref_date".equalsIgnoreCase(childNodeName))
{
refDateStr = checkNull(genericUtility.getColumnValue("ref_date", dom));
......@@ -628,7 +630,9 @@ public class PaymentExpenseEJB extends ValidatorEJB implements PaymentExpenseLoc
{
cctrCode = checkNull(genericUtility.getColumnValue("cctr_code",dom));
acctCode = checkNull(genericUtility.getColumnValue("acct_code",dom));
errCode = finCommon.isCctrCode(acctCodeBal, cctrCodeBal, tranSeries, conn);
if(cctrCode != null && cctrCode.trim().length() > 0) //Pavan Rane 13aug19[in case the values are not specified not to validate]
{
errCode = finCommon.isCctrCode(acctCode, cctrCode, tranSeries, conn);
if(errCode != null && errCode.trim().length() > 0)
{
errList.add(errCode);
......@@ -640,6 +644,7 @@ public class PaymentExpenseEJB extends ValidatorEJB implements PaymentExpenseLoc
}
}
}
}
else if("emp_code".equalsIgnoreCase(childNodeName))
{
empCode = checkNull(genericUtility.getColumnValue("emp_code",dom));
......@@ -664,6 +669,8 @@ public class PaymentExpenseEJB extends ValidatorEJB implements PaymentExpenseLoc
{
analCode = checkNull(genericUtility.getColumnValue("anal_code",dom));
acctCode = checkNull(genericUtility.getColumnValue("acct_code",dom));
if(analCode != null && analCode.trim().length() > 0) //Pavan Rane 13aug19[in case the values are not specified not to validate]
{
errCode = finCommon.isAnalysis(acctCode, analCode, tranSeries, conn);
if(errCode != null && errCode.trim().length() > 0)
{
......@@ -676,6 +683,7 @@ public class PaymentExpenseEJB extends ValidatorEJB implements PaymentExpenseLoc
}
}
}
}
else if("tax_class".equalsIgnoreCase(childNodeName))
{
taxClass = checkNull(genericUtility.getColumnValue("tax_class",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