Commit 4b545e15 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@94571 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 27a2b1b1
......@@ -320,7 +320,8 @@ 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 " +
" 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 ( 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 ( 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