Commit 0eb05281 authored by caluka's avatar caluka

status !='X' condition added


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101182 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2b805358
...@@ -125,11 +125,12 @@ public class EcollectionSubIC extends ValidatorEJB implements EcollectionSubICLo ...@@ -125,11 +125,12 @@ public class EcollectionSubIC extends ValidatorEJB implements EcollectionSubICLo
bankCode = this.genericUtility.getColumnValue("bank_code", dom); bankCode = this.genericUtility.getColumnValue("bank_code", dom);
siteCode = this.genericUtility.getColumnValue("site_code", dom); siteCode = this.genericUtility.getColumnValue("site_code", dom);
tranId = this.genericUtility.getColumnValue("tran_id", dom); tranId = this.genericUtility.getColumnValue("tran_id", dom);
custCode = this.genericUtility.getColumnValue("cust_code", dom);
System.out.println("refNo>>>>>>" + refNo); System.out.println("refNo>>>>>>" + refNo);
if (refNo != null && refNo.trim().length() > 0) if (refNo != null && refNo.trim().length() > 0)
{ {
sql = " select count(*) as cnt from receipt_form where site_code = ? and bank_code=? and ref_no=? "; sql = " select count(*) as cnt from receipt_form where site_code = ? and bank_code=? and ref_no=? and status !='X' ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCode); pstmt.setString(1, siteCode);
pstmt.setString(2, bankCode); pstmt.setString(2, bankCode);
......
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