Commit 3286af3e authored by vkadam's avatar vkadam

Add case condition for removing null value, by C patil


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96594 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 67712aa5
......@@ -604,7 +604,9 @@ public class WoIssPartialPrc extends ProcessEJB implements WoIssPartialPrcLocal,
updDet = updDet + pstmt1.executeUpdate();
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 = ? ) "+
sql = " update inv_alloc_det set issue_qty = (CASE WHEN issue_qty IS NULL THEN 0 ELSE issue_qty END) + ? ,"//Add case condition for removing null value
+ " dealloc_qty = (CASE WHEN dealloc_qty IS NULL THEN 0 ELSE dealloc_qty END) + ?"
+ " 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(sql);
pstmt1.setDouble(1,propReqQty);
......
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