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,16 +266,18 @@ public class PaymentExpenseEJB extends ValidatorEJB implements PaymentExpenseLoc
{
cctrCodeBal = checkNull(genericUtility.getColumnValue("cctr_code__bal",dom));
acctCodeBal = checkNull(genericUtility.getColumnValue("acct_code__bal",dom));
errCode = finCommon.isCctrCode(acctCodeBal, cctrCodeBal, tranSeries, conn);
if(errCode != null && errCode.trim().length() > 0)
if(cctrCodeBal != null && cctrCodeBal.trim().length() > 0) //Pavan Rane 13aug19[in case the values are not specified not to validate]
{
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
errCode = finCommon.isCctrCode(acctCodeBal, cctrCodeBal, tranSeries, conn);
if(errCode != null && errCode.trim().length() > 0)
{
break;
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
}
}
......@@ -628,15 +630,18 @@ 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(errCode != null && errCode.trim().length() > 0)
if(cctrCode != null && cctrCode.trim().length() > 0) //Pavan Rane 13aug19[in case the values are not specified not to validate]
{
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
errCode = finCommon.isCctrCode(acctCode, cctrCode, tranSeries, conn);
if(errCode != null && errCode.trim().length() > 0)
{
break;
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
}
}
......@@ -664,15 +669,18 @@ public class PaymentExpenseEJB extends ValidatorEJB implements PaymentExpenseLoc
{
analCode = checkNull(genericUtility.getColumnValue("anal_code",dom));
acctCode = checkNull(genericUtility.getColumnValue("acct_code",dom));
errCode = finCommon.isAnalysis(acctCode, analCode, tranSeries, conn);
if(errCode != null && errCode.trim().length() > 0)
if(analCode != null && analCode.trim().length() > 0) //Pavan Rane 13aug19[in case the values are not specified not to validate]
{
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
errCode = finCommon.isAnalysis(acctCode, analCode, tranSeries, conn);
if(errCode != null && errCode.trim().length() > 0)
{
break;
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, errCode);
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
}
}
......
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