Commit 729efc25 authored by manohar's avatar manohar

Locking before confirmation done


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95874 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7ec3ca01
......@@ -171,6 +171,31 @@ public class JvConfirm extends ActionHandlerEJB implements JvConfirmLocal,JvCon
return errString;
}
//edit-start
sql ="select confirmed from journal "
+" where tran_id = ? for update nowait ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId);
rs = pstmt.executeQuery();
if (rs.next())
{
confirmed = rs.getString("confirmed");
}
else
{
errString = itmDBAccessEJB.getErrorString("","VTLCKERR",userId);
rs.close();
rs = null;
pstmt.close();
pstmt = null ;
return errString;
}
rs.close();
rs = null;
pstmt.close();
pstmt = null ;
sql = " select j.tran_type, j.tran_date,j.eff_date,j.site_code, "
+" j.fin_entity,j.ref_ser,j.ref_no,j.reversible,j.rev_date,j.auto_rev, "
+" j.rev_date__act ,j.dr_amt ,j.cr_amt ,j.curr_code ,j.status ,j.remarks ,"
......
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