Commit 577d65bc authored by cpatil's avatar cpatil

added bank_code condition


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99549 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fa7c34bd
......@@ -415,12 +415,14 @@ public class MiscPaySubAct extends ActionHandlerEJB implements MiscPaySubActLoca
if(!finparPayModeArrList.contains(payMode.trim()))
{
System.out.println("list not match with paymode");
sql = "select count(*) as cnt from misc_payment mispay " +
"where mispay.tran_id <> ? " +
"and mispay.ref_no=? ";
sql = " select count(*) as cnt from misc_payment mispay " +
" where mispay.tran_id <> ? " +
" and mispay.ref_no = ? " +
" and bank_code = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
pstmt.setString(2, chqNo);
pstmt.setString(3, bankCode); // added bank_code condition on 30/12/15
rs = pstmt.executeQuery();
if (rs.next())
......
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