Commit c68989db authored by agaikwad's avatar agaikwad

Added condition in comm_perc Validation


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105115 ce508802-f39f-4f6c-b175-0d175dae99d5
parent eb78f651
......@@ -1628,7 +1628,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
errFields.add(childNodeName.toLowerCase());
System.out.println("Commission On Cannot Be Blank If Commission Perc Is Specified ");
}
} else if (commPercOn != null && commPercOn.trim().length() > 0)
} else if (commPercOn != null && commPercOn.trim().length() > 0 && !"N".equalsIgnoreCase(commPercOn))
{
errCode = "VTSOCOMM2";
errList.add(errCode);
......@@ -1650,7 +1650,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
errFields.add(childNodeName.toLowerCase());
System.out.println("Commission On Cannot Be Blank If Commission Perc Is Specified ");
}
} else if (commPercOn != null && commPercOn.trim().length() > 0)
} else if (commPercOn != null && commPercOn.trim().length() > 0 && !"N".equalsIgnoreCase(commPercOn))
{
errCode = "VTSOCOMM2";
errList.add(errCode);
......@@ -1672,7 +1672,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
errFields.add(childNodeName.toLowerCase());
System.out.println("Commission On Cannot Be Blank If Commission Perc Is Specified ");
}
} else if (commPercOn != null && commPercOn.trim().length() > 0)
} else if (commPercOn != null && commPercOn.trim().length() > 0 && !"N".equalsIgnoreCase(commPercOn))
{
errCode = "VTSOCOMM2";
errList.add(errCode);
......@@ -3542,7 +3542,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
}
else
{
if(lsCommpercOn !=null && lsCommpercOn.trim().length()>0)
if(lsCommpercOn !=null && lsCommpercOn.trim().length()>0 && !"N".equalsIgnoreCase(lsCommpercOn))
{
errCode = "VTSOCOMM2";
errList.add(errCode);
......@@ -3572,7 +3572,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
}
else
{
if(lsCommpercOn !=null && lsCommpercOn.trim().length()>0)
if(lsCommpercOn !=null && lsCommpercOn.trim().length()>0 && !"N".equalsIgnoreCase(lsCommpercOn))
{
errCode = "VTSOCOMM2";
errList.add(errCode);
......@@ -3602,7 +3602,7 @@ public class SalesOrderIC extends ValidatorEJB implements SalesOrderICLocal, Sal
}
else
{
if(lsCommpercOn!=null && lsCommpercOn.trim().length()>0)
if(lsCommpercOn!=null && lsCommpercOn.trim().length()>0 && !"N".equalsIgnoreCase(lsCommpercOn))
{
errCode = "VTSOCOMM2";
errList.add(errCode);
......
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