Commit edeb6e60 authored by kmandhre's avatar kmandhre

change in sql condition for get stock data


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95242 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 67fa9fbb
...@@ -367,8 +367,8 @@ public class InvHoldRelConf extends ActionHandlerEJB implements InvHoldRelConfLo ...@@ -367,8 +367,8 @@ public class InvHoldRelConf extends ActionHandlerEJB implements InvHoldRelConfLo
else //i.e. line_sl is not found else //i.e. line_sl is not found
{ {
HashMap pkKeyValMap = new HashMap(); HashMap pkKeyValMap = new HashMap();
StringBuffer sb = new StringBuffer("SELECT ITEM_CODE,SITE_CODE,LOC_CODE,LOT_NO,LOT_SL,QUANTITY, HOLD_QTY, QTY_PER_ART FROM STOCK WHERE "); StringBuffer sb = new StringBuffer("SELECT ITEM_CODE,SITE_CODE,LOC_CODE,LOT_NO,LOT_SL,QUANTITY, HOLD_QTY, QTY_PER_ART FROM STOCK WHERE ");//change on 09/jun/14 compare with inv_hold_rel_trace table
sb.append(" ( ITEM_CODE,SITE_CODE,LOC_CODE,LOT_NO,LOT_SL ) in (select ITEM_CODE,SITE_CODE,LOC_CODE,LOT_NO,LOT_SL from INV_HOLD_DET where tran_id='"+tranIdHold+"') and STOCK.QUANTITY > 0 and STOCK.HOLD_QTY > 0 and ") ;//ADDED BY KUNAL ON 27/MAY/14 add extra condition for data filter sb.append(" ( ITEM_CODE,SITE_CODE,LOC_CODE,LOT_NO,LOT_SL ) in (select ITEM_CODE,SITE_CODE,LOC_CODE,LOT_NO,LOT_SL from inv_hold_rel_trace where ref_no ='"+tranIdHold+"') and STOCK.QUANTITY > 0 and STOCK.HOLD_QTY > 0 and ") ;//ADDED BY KUNAL ON 27/MAY/14 add extra condition for data filter
ArrayList pkList = new ArrayList(); ArrayList pkList = new ArrayList();
if ( itemCode != null && itemCode.length() > 0 ) if ( itemCode != null && itemCode.length() > 0 )
......
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