Commit b48d6204 authored by arane's avatar arane

Project Estimation - On approval those item for which stk_opt is <> "0" to be...

Project Estimation - On approval those item for which stk_opt is <> "0" to be updated in demand/supply summary for MRP

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@216786 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 16aaee76
......@@ -28,5 +28,23 @@ union all
and ( item.Item_Ser <= '@itemserto@')
and ( (select fr_date from period where code = d.PRD_CODE__FOR) >= to_date('@fromdate@'))
and ( (select to_date from period where code = d.PRD_CODE__FOR) <= to_date('@todate@'))
and ( 0 = @madetostock@ )
and trim(nvl((select si.mfg_type from siteitem si where si.site_code = h.site_code and si.item_code = item.item_code ),' ')) not in ('O','D') )
and ( 0 = '@madetostock@' )
and trim(nvl((select si.mfg_type from siteitem si where si.site_code = h.site_code and si.item_code = item.item_code ),' ')) not in ('O','D')
UNION all
SELECT distinct item.item_code__plan as item_code
FROM proj_est_bsl_item d,PROJ_EST_BASELINE h,floor_mst f, item
WHERE ( h.tran_id = d.tran_id )
and ( d.item_code = item.item_code )
and ( f.site_code in ('@sitecode@') )
and ( item.item_code__plan >= '@itemcodefr@')
and ( item.item_code__plan <= '@itemcodeto@')
and ( item.Item_Ser >= '@itemserfr@')
and ( item.Item_Ser <= '@itemserto@')
and ( d.start_date >= to_date('@fromdate@'))
and (d.start_date <= to_date('@todate@'))
and ( 0 = '@madetostock@' )
and trim(nvl((select si.mfg_type from siteitem si where si.site_code = f.site_code and si.item_code = item.item_code ),' ')) not in ('O','D')
)
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