Commit 3fc75ef2 authored by prane's avatar prane

to display proper err msg if cctr code blank

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@195427 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 80d49aef
...@@ -921,7 +921,11 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -921,7 +921,11 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
/* else if(cctrCodeAp == null || cctrCodeAp.trim().length() == 0 )--commented by Abhijit /* else if(cctrCodeAp == null || cctrCodeAp.trim().length() == 0 )--commented by Abhijit
{ {
errCode = "VMCCTRNULL"; errCode = "VMCCTRNULL";
}*/ }*/
if(cctrCodeAp == null || cctrCodeAp.trim().length() == 0)//Added by Pavan R [to handle exception in gltrace on blank_cctr]
{
errCode = "VTBLCCTRCD";
}
if(errCode != null && (errCode.trim().length() > 0)) if(errCode != null && (errCode.trim().length() > 0))
{ {
errList.add(errCode); errList.add(errCode);
...@@ -961,7 +965,13 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M ...@@ -961,7 +965,13 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
else if(childNodeName.equalsIgnoreCase("cctr_code__cf")) else if(childNodeName.equalsIgnoreCase("cctr_code__cf"))
{ {
cctrCodeCf = checkNull(genericUtility.getColumnValue("cctr_code__cf", dom)); cctrCodeCf = checkNull(genericUtility.getColumnValue("cctr_code__cf", dom));
acctCodeCf = checkNull(genericUtility.getColumnValue("acct_code__cf", dom)); acctCodeCf = checkNull(genericUtility.getColumnValue("acct_code__cf", dom));
if(cctrCodeCf == null || cctrCodeCf.trim().length() == 0)//Added by Pavan R [to handle exception in gltrace on blank_cctr]
{
errCode = "VTBLCCTRCD";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
if(acctCodeCf!= null && (acctCodeCf.trim().length() > 0 )) if(acctCodeCf!= null && (acctCodeCf.trim().length() > 0 ))
{ {
//if(acctCodeCf != null && cctrCodeCf != null && acctCodeCf.trim().length() > 0 && cctrCodeCf.trim().length() > 0) //if(acctCodeCf != null && cctrCodeCf != null && acctCodeCf.trim().length() > 0 && cctrCodeCf.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