Commit 8b5cba6f authored by dpawar's avatar dpawar

update pophelp sql for 45 days


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95568 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 83c91bea
......@@ -375,7 +375,7 @@ from
(
select inv.invoice_id,tr.item_code,tr.lot_no,tr.lot_sl,tr.inv_line_no,sum(nvl(tr.quantity,0)) quantity
from invoice_trace tr
join invoice inv on inv.invoice_id = tr.invoice_id and inv.site_code = ''?'' and inv.cust_code__bil = ''?''
join invoice inv on inv.invoice_id = tr.invoice_id and inv.site_code = ''?'' and inv.cust_code__bil = ''?'' AND sysdate - conf_date > 45 and inv_type in (''DM'',''IS'')
group by inv.invoice_id, tr.item_code, tr.lot_no, tr.lot_sl, tr.inv_line_no
) tt
left outer join
......@@ -398,8 +398,8 @@ from
group by remarks,item_code,lot_no,lot_sl,line_no__trace
) dt on dt.remarks = tt.invoice_id and tt.item_code = dt.item_code and tt.lot_no = dt.lot_no and tt.lot_sl = dt.lot_sl and tt.inv_line_no = dt.line_no__trace
) datatable
where invoice_id <> ''NOT''
order by invoice_id'
where invoice_id <> ''NOT''
order by invoice_id'
where mod_name='W_PROOF_OF_DELIVERY' and field_name='INVOICE_ID';
......
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