Commit 8eab9043 authored by prane's avatar prane

removed itemser for stock sql

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@202690 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 025192fc
...@@ -166,7 +166,7 @@ sum(pending_dr) pending_dr from ...@@ -166,7 +166,7 @@ sum(pending_dr) pending_dr from
AND a.item_code = '@itemcode@' AND a.item_code = '@itemcode@'
AND NVL(b.plan_prod,'N') = 'Y' AND NVL(b.plan_prod,'N') = 'Y'
AND a.item_code=d.item_code AND a.item_code=d.item_code
and d.item_ser not in ('FG01','FG07')
UNION ALL UNION ALL
SELECT d.item_code__plan as item_code,FN_MRP_DUEDATE(to_date('@fromdate@')) as due_date,0 as demand, SELECT d.item_code__plan as item_code,FN_MRP_DUEDATE(to_date('@fromdate@')) as due_date,0 as demand,
NVL((eff_qty * -1),0) as supply,NVL((eff_qty * -1),0) as stock_qty, NVL((eff_qty * -1),0) as supply,NVL((eff_qty * -1),0) as stock_qty,
...@@ -180,7 +180,6 @@ UNION ALL ...@@ -180,7 +180,6 @@ UNION ALL
AND a.site_code = '@sitecode@' AND a.site_code = '@sitecode@'
AND NVL(c.plan_prod,'N') = 'Y' AND NVL(c.plan_prod,'N') = 'Y'
AND a.item_code=d.item_code AND a.item_code=d.item_code
--and d.item_ser not in ('FG01','FG07')
AND a.EFF_date > to_date('@rundate@')) group by item_code,due_date AND a.EFF_date > to_date('@rundate@')) group by item_code,due_date
UNION ALL UNION ALL
......
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