Commit d1f6d53d authored by caluka's avatar caluka

porder and indent sql commented


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97195 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 921ae078
...@@ -45,7 +45,7 @@ UNION ALL ...@@ -45,7 +45,7 @@ UNION ALL
AND a.item_code=d.item_code AND a.item_code=d.item_code
AND a.EFF_date > to_date(fn_sysdate()) AND a.EFF_date > to_date(fn_sysdate())
UNION ALL UNION ALL
SELECT item.item_code__plan as item_code,indent.req_date as due_date, /* SELECT item.item_code__plan as item_code,indent.req_date as due_date,
0 as demand , 0 as demand ,
sum(case when (case when indent.quantity is null then 0 else sum(case when (case when indent.quantity is null then 0 else
indent.quantity end - case when indent.quantity end - case when
...@@ -88,7 +88,7 @@ FROM indent,item ...@@ -88,7 +88,7 @@ FROM indent,item
( porder.pord_type not in (@ordtypes@) ) and ( porder.pord_type not in (@ordtypes@) ) and
( porddet.dlv_date <= to_date('@todate@')) ( porddet.dlv_date <= to_date('@todate@'))
Group By item.item_code__plan,porddet.dlv_date,porddet.site_code Group By item.item_code__plan,porddet.dlv_date,porddet.site_code
UNION ALL UNION ALL */
SELECT item.item_code__plan as item_code, mps_order.due_date as due_date, SELECT item.item_code__plan as item_code, mps_order.due_date as due_date,
sum(mps_order.quantity) as demand, 0 as supply , 0 as stock_qty, 0 as oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr,mps_order.site_code as site_code, 0 as qtstk sum(mps_order.quantity) as demand, 0 as supply , 0 as stock_qty, 0 as oth_supply, 0 as pending_po, 0 as pending_do, 0 as pending_indent, 0 as pending_dr,mps_order.site_code as site_code, 0 as qtstk
FROM mps_order, item FROM mps_order, item
......
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