Commit 97be68e0 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@97139 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 17ad32ed
...@@ -391,7 +391,7 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv ...@@ -391,7 +391,7 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
" ih.ref_ser,ih.ref_id,ih.ref_no, ih.confirmed,ih.lock_code ,ihd.lot_no,ihd.lot_sl,ihd.remarks " + " ih.ref_ser,ih.ref_id,ih.ref_no, ih.confirmed,ih.lock_code ,ihd.lot_no,ihd.lot_sl,ihd.remarks " +
" from inv_hold_det ihd,inv_hold ih , inv_lock il where ( ihd.tran_id = ih.tran_id ) and (ih.lock_code=il.lock_code) " + " from inv_hold_det ihd,inv_hold ih , inv_lock il where ( ihd.tran_id = ih.tran_id ) and (ih.lock_code=il.lock_code) " +
" and ( ihd.tran_id >= ? and ihd.tran_id <= ? )and ( ih.lock_code >= ? and ih.lock_code <= ? )" + " and ( ihd.tran_id >= ? and ihd.tran_id <= ? )and ( ih.lock_code >= ? and ih.lock_code <= ? )" +
" and ( ihd.sch_rel_date between ? and ? ) and ihd.hold_status <> 'R' "+ " and ( ihd.sch_rel_date between ? and ? ) and case when ihd.hold_status is null then 'H' else ihd.hold_status end='H' "+//Condition changed by manoj dtd 20012014 from hold_status<>'R'
" and (( ihd.lot_no >= '"+lotNoFrom+"' and ihd.lot_no <= '"+lotNoTo+"' ) OR ihd.lot_no IS NULL) "+ " and (( ihd.lot_no >= '"+lotNoFrom+"' and ihd.lot_no <= '"+lotNoTo+"' ) OR ihd.lot_no IS NULL) "+
" and (select count(1) from inv_hold_rel_trace t " + " and (select count(1) from inv_hold_rel_trace t " +
" where t.ref_no = ihd.tran_id and t.lot_no >= '"+lotNoFrom+"' and t.lot_no <= '"+lotNoTo+"' and t.hold_qty >0 ) > 0 " // 12/11/14 manoharan filter lot from trace " where t.ref_no = ihd.tran_id and t.lot_no >= '"+lotNoFrom+"' and t.lot_no <= '"+lotNoTo+"' and t.hold_qty >0 ) > 0 " // 12/11/14 manoharan filter lot from trace
......
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