Commit 608d4683 authored by agaikwad's avatar agaikwad

remove semicolon(lot_sl validation) and added trim in tax class , chap and env column validation;


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105174 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4f8795d4
......@@ -2332,7 +2332,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
pstmt.close();
pstmt = null;
}
if("Y".equalsIgnoreCase(lsqcreqd));
if("Y".equalsIgnoreCase(lsqcreqd))
{
sql="select count(*) from location a , " +
" invstat b where a.inv_stat = b.inv_stat and b.available = 'N'" +
......@@ -3604,7 +3604,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
{
String taxClass="";
taxClass = genericUtility.getColumnValue("tax_class",dom);
if (taxClass != null && taxClass.length() > 0)
if (taxClass != null && taxClass.trim().length() > 0)
{
errCode = isExist("taxclass", "tax_class",taxClass, conn);
if ("FALSE".equalsIgnoreCase(errCode))
......@@ -3620,7 +3620,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
{
String taxChap="";
taxChap = genericUtility.getColumnValue("tax_chap", dom);
if (taxChap != null && taxChap.length() > 0)
if (taxChap != null && taxChap.trim().length() > 0)
{
errCode = isExist("taxchap", "tax_chap", taxChap,conn);
if ("FALSE".equalsIgnoreCase(errCode))
......@@ -3641,7 +3641,7 @@ public class PoReceiptIc extends ValidatorEJB implements PoReceiptIcLocal,PoRec
ordDate = Timestamp.valueOf(genericUtility.getValidDateString(ordDateStr.toString(),genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat())+
" 00:00:00.0");
System.out.println("ordDate"+ordDate);
if (taxEnv != null && taxEnv.length() > 0)
if (taxEnv != null && taxEnv.trim().length() > 0)
{
errCode = isExist("taxenv", "tax_env", taxEnv, conn);
if ("FALSE".equalsIgnoreCase(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