Commit 7de3ac85 authored by sakhtar's avatar sakhtar

removed validation on acctType from isacctType as per discussion with Shri Mam


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91771 ce508802-f39f-4f6c-b175-0d175dae99d5
parent eb5afd38
......@@ -2518,26 +2518,38 @@ public class FinCommon
acctType = rs.getString(1);
sType = rs.getString(2)==null?"O":rs.getString(2);
System.out.println("Retrieved -- > sType :: '" + sType + "' sundryType :: '" + sundryType + "'");
// if (sundryCode == null || sundryCode.trim().length() == 0)
// {
// if (acctType != null && !acctType.equalsIgnoreCase("O"))
// {
// errCode = "VMACCT4"; // TYPE MUST BE OTHER IF SUNDRY CODE IS BLANK
// }
//
// }
// commented by shamim as per discussion with Shri Mam ,no validation on acctType 27-07-12
if (sundryCode == null || sundryCode.trim().length() == 0)
{
if (acctType != null && !acctType.equalsIgnoreCase("O"))
if (sType != null && "O".equalsIgnoreCase("sType"))
{
errCode = "VMACCT4"; // TYPE MUST BE OTHER IF SUNDRY CODE IS BLANK
}
}
else
{
if (acctType != null && acctType.equalsIgnoreCase("O"))
{
errCode = "VMACCT5"; // TYPE MUST NOT BE OTHER IF SUNDRY IS SPECIFIED
}
else
{
if (!sType.equals(sundryType))
// if (acctType != null && acctType.equalsIgnoreCase("O"))
// {
// errCode = "VMACCT5"; // TYPE MUST NOT BE OTHER IF SUNDRY IS SPECIFIED
// }
// else
// {
if (sType != null && (!sType.equals(sundryType)))
{
errCode = "VMACCT6"; // TYPE SHOULD BE SAME AS ENTERED
}
}
// }
}
}
pstmt.close(); pstmt = null;
......
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