Commit 1b2ccc25 authored by ssarkar's avatar ssarkar

changed by sumit on 25/03/13 for bug of deallocation IN PICK_ISS


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92871 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b8e3d0dd
...@@ -3076,7 +3076,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo ...@@ -3076,7 +3076,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
} }
} }
/*sql = " SELECT SUM(ROD.QUANTITY - CASE WHEN ROD.ACTUAL_QTY IS NULL THEN 0 ELSE ROD.ACTUAL_QTY END ) AS QUANTITY " + sql = " SELECT SUM(ROD.QUANTITY - CASE WHEN ROD.ACTUAL_QTY IS NULL THEN 0 ELSE ROD.ACTUAL_QTY END ) AS QUANTITY " +
" FROM REPL_ORD_DET ROD, REPL_ORD_HDR ROH WHERE ROD.REPL_ORDER = ? AND ROH.REPL_ORDER = ROD.REPL_ORDER AND ROH.ORDER_TYPE = 'Q' "; " FROM REPL_ORD_DET ROD, REPL_ORD_HDR ROH WHERE ROD.REPL_ORDER = ? AND ROH.REPL_ORDER = ROD.REPL_ORDER AND ROH.ORDER_TYPE = 'Q' ";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, replOrder); pstmt.setString(1, replOrder);
...@@ -3090,9 +3090,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo ...@@ -3090,9 +3090,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
pstmt.close(); pstmt = null; pstmt.close(); pstmt = null;
if(quantity == 0) if(quantity == 0)
{ {
sql = " UPDATE WAVE_TASK_DET SET STATUS ='Y' WHERE REF_ID = ? AND STATUS = 'N'"; sql = " UPDATE WAVE_TASK_DET SET STATUS ='Y' WHERE REF_ID = ? AND STATUS = 'N'";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, replOrder); pstmt.setString(1, replOrder);
...@@ -3101,7 +3099,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo ...@@ -3101,7 +3099,7 @@ public class DeallocArtConf extends ActionHandlerEJB implements DeallocArtConfLo
System.out.println(" wave_task_det updated succesfully"); System.out.println(" wave_task_det updated succesfully");
} }
pstmt.close(); pstmt = null; pstmt.close(); pstmt = null;
}*/ }
} }
} }
catch(Exception e) catch(Exception e)
......
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