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