Commit d799a13c authored by pchavan's avatar pchavan

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@184036 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a7656446
......@@ -1869,7 +1869,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
if(errCode == null || (errCode.trim().length() == 0 ))
if(errCode == null || (errCode.trim().length() == 0 && analCode.trim().length() > 0 ))
{
sql = "SELECT COUNT(*) FROM cctr_anal WHERE cctr_code = ? and anal_code = ?";
pstmt = conn.prepareStatement(sql);
......@@ -1939,7 +1939,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
if(errCode == null || (errCode.trim().length() == 0 ))
if(errCode == null || (errCode.trim().length() == 0 && acctCode.trim().length() > 0 && analCode1.trim().length() > 0 ))
{
sql = "SELECT COUNT(*) FROM cctr_anal WHERE cctr_code = ? and anal_code = ?";
pstmt = conn.prepareStatement(sql);
......@@ -2009,7 +2009,7 @@ public class MiscVoucherIC extends ValidatorEJB implements MiscVoucherICLocal, M
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
if(errCode == null || (errCode.trim().length() == 0 ))
if(errCode == null || (errCode.trim().length() == 0 && acctCode.trim().length() > 0 && analCode2.trim().length() > 0 ))
{
sql = "SELECT COUNT(*) FROM cctr_anal WHERE cctr_code = ? and anal_code = ?";
pstmt = conn.prepareStatement(sql);
......
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