Commit 97ad9149 authored by rtiwari's avatar rtiwari

update iss_qty


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96580 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2b3fd0d7
...@@ -603,6 +603,18 @@ public class WoIssPartialPrc extends ProcessEJB implements WoIssPartialPrcLocal, ...@@ -603,6 +603,18 @@ public class WoIssPartialPrc extends ProcessEJB implements WoIssPartialPrcLocal,
pstmt1.setString(17,worder); pstmt1.setString(17,worder);
updDet = updDet + pstmt1.executeUpdate(); updDet = updDet + pstmt1.executeUpdate();
pstmt1.close();pstmt1=null; pstmt1.close();pstmt1=null;
sql = " update inv_alloc_det set issue_qty = issue_qty + ? , dealloc_qty = dealloc_qty + ? where tran_id in (select tran_id from inv_allocate where work_order = ? ) "+
" and item_code = ? and lot_sl= ? and lot_no = ? and site_code= ? and loc_code = ? ";
pstmt1 = conn.prepareStatement(insertDetail);
pstmt1.setString(1,worder);
pstmt1.setString(2,itemCode);
pstmt1.setString(3,lotSlInv);
pstmt1.setString(4,lotNoInv);
pstmt1.setString(5,siteCode);
pstmt1.setString(6,locCode);
pstmt1.executeUpdate();
pstmt1.close();pstmt1=null;
} }
} }
System.out.println("detail record :: inserted "+updDet); System.out.println("detail record :: inserted "+updDet);
......
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