Commit 52fad639 authored by msharma's avatar msharma

Condition changed by manoj dtd 20012014 from hold_status<>'R'


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97141 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 40c9b093
......@@ -1190,7 +1190,7 @@ public class StockTransferConf extends ActionHandlerEJB implements StockTransfer
boolean isuniqueHold=false;
String lineNo="";
sql="select line_no from inv_hold_det where tran_id = ? and item_code = ? and site_code = ? "
+" and lot_no is null and lot_sl is null and loc_code is null and hold_status<>'R' ";
+" and lot_no is null and lot_sl is null and loc_code is null and case when hold_status is null then 'H' else hold_status end ='H' ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranIdHold);
pstmt.setString(2, itemCode);
......@@ -1210,7 +1210,7 @@ public class StockTransferConf extends ActionHandlerEJB implements StockTransfer
if(!isitemHold)
{
sql="select line_no from inv_hold_det where tran_id = ? and item_code = ? and site_code = ? "
+" and lot_no = ? and lot_sl is null and loc_code is null and hold_status<>'R' ";
+" and lot_no = ? and lot_sl is null and loc_code is null and case when hold_status is null then 'H' else hold_status end ='H' ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranIdHold);
pstmt.setString(2, itemCode);
......@@ -1230,7 +1230,7 @@ public class StockTransferConf extends ActionHandlerEJB implements StockTransfer
if(!isitemLotHold)
{
sql="select line_no from inv_hold_det where tran_id = ? and item_code = ? and site_code = ? "
+" and loc_code = ? and lot_no = ? and lot_sl=? and hold_status<>'R' ";
+" and loc_code = ? and lot_no = ? and lot_sl=? and case when hold_status is null then 'H' else hold_status end ='H' ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranIdHold);
pstmt.setString(2, itemCode);
......@@ -1288,7 +1288,7 @@ public class StockTransferConf extends ActionHandlerEJB implements StockTransfer
else
{*/
sql="select count(1) from inv_hold_det where tran_id = ? and item_code = ? and site_code = ? "
+" and loc_code = ? and lot_no = ? and lot_sl=? and hold_status<>'R' ";
+" and loc_code = ? and lot_no = ? and lot_sl=? and case when hold_status is null then 'H' else hold_status end ='H' ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranIdHold);
pstmt.setString(2, itemCode);
......
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