Commit be86aec2 authored by prane's avatar prane

to reinitialise the variables to reset previous value for postlog jsp(lotNo, lotSl, locCode)

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@202934 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 574109a6
...@@ -121,13 +121,7 @@ indent.ord_qty end end ) as pending_indent, 0 as pending_dr ...@@ -121,13 +121,7 @@ indent.ord_qty end end ) as pending_indent, 0 as pending_dr
( 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 Group By item.item_code__plan,porddet.dlv_date
UNION ALL
SELECT item.item_code__plan as item_code,FN_MRP_DUEDATE(to_date('@fromdate@')) as due_date,
0 as demand ,
DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,to_date(fn_sysdate())) 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 item
WHERE item.item_code__plan= '@itemcode@'
and DDF_INV_CLSTK_MRP('@sitecode@',item.item_code,to_date(fn_sysdate())) > 0
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 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
......
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