Commit f89efc9c authored by pgole's avatar pgole

Updated sql for MRP RUN Sql changes req id: M16FSAV003


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103448 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 26314859
......@@ -14,7 +14,7 @@
UNION ALL
SELECT item.item_code__plan as item_code,dist_demand.due_date as due_date,
sum(fn_get_avgpotency('@itemcode@' ,'@sitecode@' ,case when dist_demand.qty_required is null then 0 else dist_demand.qty_required end )) as demand + ,
sum(fn_get_avgpotency('@itemcode@' ,'@sitecode@' ,case when dist_demand.qty_required is null then 0 else dist_demand.qty_required end )) 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
FROM dist_demand, item
WHERE ( dist_demand.item_code = item.item_code ) and
......
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