Commit 86e0656a authored by msharma's avatar msharma

Excluded inv_hold_det records for which unconfirmed inv_hold_rel record is available


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@94577 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 682a621e
......@@ -321,7 +321,7 @@ public class InvHoldRelGen extends ProcessEJB implements InvHoldRelGenLocal, Inv
" from inv_hold_det ihd,inv_hold ih where ( ihd.tran_id = ih.tran_id )" +
" 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 nvl((select 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 "; // 14/04/14 manoharan this condition added
+ " 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 "; // 14/04/14 manoharan this condition added
//and ( ihd.lock_code between ? and ? )
if(refIdFrom != null )
{
......
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