Commit 98abecc4 authored by manohar's avatar manohar

Code optimisation for speed issue


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104148 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2ba1a41f
......@@ -1083,11 +1083,12 @@ public class PostOrdInvoiceGen extends ActionHandlerEJB
pstmt.close();
pstmt=null;
sql="update despatchdet set invoice_id = ?,quantity_inv=? where desp_id = ? ";
pstmt=conn.prepareStatement(sql);
sql="update despatchdet set invoice_id = ?,quantity_inv=? where desp_id = ? and line_no = ? ";
pstmt=conn.prepareStatement(sql); //
pstmt.setString(1,tranId);
pstmt.setDouble(2,Double.parseDouble(invTraceDetMap.get("quantity")));
pstmt.setString(3,invTraceDetMap.get("desp_id"));
pstmt.setString(4,invTraceDetMap.get("desp_line_no"));
pstmt.executeUpdate();
pstmt.close();
pstmt=null;
......
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