Commit efea13d0 authored by caluka's avatar caluka

adding hold quantity condition in getdata sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96803 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1308aa76
...@@ -387,7 +387,7 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv ...@@ -387,7 +387,7 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
" 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 ihd.hold_status <> 'R' "+
" 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+"' ) > 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
+ " and ih.confirmed='Y' " + " and ih.confirmed='Y' "
+ " and nvl((select count(1) from inv_hold_rel_det r where r.tran_id__hold = ihd.tran_id and r.line_no__hold = ihd.line_no ),0) = 0 "+subSql; // 14/04/14 manoharan + " and nvl((select count(1) from inv_hold_rel_det r where r.tran_id__hold = ihd.tran_id and r.line_no__hold = ihd.line_no ),0) = 0 "+subSql; // 14/04/14 manoharan
......
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