Commit 737e0b76 authored by prane's avatar prane

added item series consideration changes while populating item code

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@212757 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d7381efb
...@@ -6,6 +6,8 @@ select distinct item.item_code__plan as item_code ...@@ -6,6 +6,8 @@ select distinct item.item_code__plan as item_code
and ( independent_demand.site_code in ('@sitecode@') ) and ( independent_demand.site_code in ('@sitecode@') )
and ( item.item_code__plan >= '@itemcodefr@') and ( item.item_code__plan >= '@itemcodefr@')
and ( item.item_code__plan <= '@itemcodeto@') and ( item.item_code__plan <= '@itemcodeto@')
and ( item.Item_Ser >= '@itemserfr@')
and ( item.Item_Ser <= '@itemserto@')
and (siteitem.site_code = independent_demand.site_code) and (siteitem.site_code = independent_demand.site_code)
and siteitem.item_code = case when item.item_code__plan is null then item.item_code else item.item_code__plan end and siteitem.item_code = case when item.item_code__plan is null then item.item_code else item.item_code__plan end
and case when siteitem.master_sch is null then 'Y' else siteitem.master_sch end <> 'N' and case when siteitem.master_sch is null then 'Y' else siteitem.master_sch end <> 'N'
...@@ -22,6 +24,8 @@ union all ...@@ -22,6 +24,8 @@ union all
and ( h.site_code in ('@sitecode@') ) and ( h.site_code in ('@sitecode@') )
and ( item.item_code__plan >= '@itemcodefr@') and ( item.item_code__plan >= '@itemcodefr@')
and ( item.item_code__plan <= '@itemcodeto@') and ( item.item_code__plan <= '@itemcodeto@')
and ( item.Item_Ser >= '@itemserfr@')
and ( item.Item_Ser <= '@itemserto@')
and ( (select fr_date from period where code = d.PRD_CODE__FOR) >= to_date('@fromdate@')) 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 ( (select to_date from period where code = d.PRD_CODE__FOR) <= to_date('@todate@'))
and ( 0 = @madetostock@ ) and ( 0 = @madetostock@ )
......
...@@ -7,7 +7,9 @@ ...@@ -7,7 +7,9 @@
and (sorditem.site_code in ('@sitecode@') ) and (sorditem.site_code in ('@sitecode@') )
and (item.item_code__plan >= '@itemcodefr@') and (item.item_code__plan >= '@itemcodefr@')
and (item.item_code__plan <= '@itemcodeto@') and (item.item_code__plan <= '@itemcodeto@')
and (item.Item_Ser >= '@itemserfr@')
and (item.Item_Ser <= '@itemserto@')
and (siteitem.site_code = sorditem.site_code) and (siteitem.site_code = sorditem.site_code)
and siteitem.item_code = case when item.item_code__plan is null then item.item_code else item.item_code__plan end and siteitem.item_code = case when item.item_code__plan is null then item.item_code else item.item_code__plan end
and case when siteitem.master_sch is null then 'Y' else siteitem.master_sch end <> 'N' and case when siteitem.master_sch is null then 'Y' else siteitem.master_sch end <> 'N'
......
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