Commit e5f939e4 authored by vkadam's avatar vkadam

Set Tran id = '@@@@' when found blank from dom.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98620 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 76ef81fe
...@@ -874,6 +874,10 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt ...@@ -874,6 +874,10 @@ public class ReceiptAdv extends ValidatorEJB implements ReceiptAdvLocal, Receipt
refNo = checkNull(this.genericUtility.getColumnValue("ref_no", dom)); refNo = checkNull(this.genericUtility.getColumnValue("ref_no", dom));
custCode = checkNull(this.genericUtility.getColumnValue("cust_code", dom)); custCode = checkNull(this.genericUtility.getColumnValue("cust_code", dom));
tranId = checkNull(this.genericUtility.getColumnValue("tran_id", dom)); tranId = checkNull(this.genericUtility.getColumnValue("tran_id", dom));
if(tranId==null || tranId.trim().length()==0)
{
tranId="@@@@@@";
}
sql = "select tran_id from receipt where cust_code=? and ref_no=? and ref_date=? and tran_id <> ?"; sql = "select tran_id from receipt where cust_code=? and ref_no=? and ref_date=? and tran_id <> ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
......
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