Commit b8c375ca authored by kmandhre's avatar kmandhre

bug fix in sql statement


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94189 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 788b1a38
......@@ -2795,10 +2795,16 @@ public class ReceiptAdvConf extends ActionHandlerEJB implements ReceiptAdvConfLo
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId);
rs = pstmt.executeQuery();
while(rs.next())
if(rs.next())
{
cnt = rs.getInt("tot_amt");
cnt = rs.getInt(1);
}
//change done by kunal on 31/jan/14 close correct sql statement
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if(cnt <= 0)
{
sql = "insert into receipt_pay_in_slip ( tran_id, entry_batch_no ) values (?, ?)";
......
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