Commit 8b683f52 authored by arane's avatar arane

MRP run - Admin email id to be defined in enterprise table - If user is not...

MRP run - Admin email id to be defined in enterprise table - If user is not having email id then mail should go to the admin user

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217041 ce508802-f39f-4f6c-b175-0d175dae99d5
parent feeef6bc
...@@ -87,7 +87,7 @@ select item_code, due_date, sum(demand) demand , sum(supply) supply, tran_id,lin ...@@ -87,7 +87,7 @@ select item_code, due_date, sum(demand) demand , sum(supply) supply, tran_id,lin
AND ( item.Item_Ser <= '@itemserTo@') AND ( item.Item_Ser <= '@itemserTo@')
AND ( distorder_det.due_date >= to_date('@fromdate@')) AND ( distorder_det.due_date >= to_date('@fromdate@'))
AND ( distorder_det.due_date <= to_date('@todate@')) AND ( distorder_det.due_date <= to_date('@todate@'))
AND ( distorder.order_type not in ('@ordtypes@') ) AND ( distorder.order_type not in (@ordtypes@) )
AND ( case when distorder.status is null then 'P' else distorder.status end = 'P') AND ( case when distorder.status is null then 'P' else distorder.status end = 'P')
AND ( case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) > 0 AND ( case when qty_confirm is null then 0 else qty_confirm end - case when qty_shipped is null then 0 else qty_shipped end) > 0
GROUP BY distorder.dist_order, distorder_det.line_no,'D-ISS',item.item_code__plan,distorder_det.due_date , distorder.site_code__ship GROUP BY distorder.dist_order, distorder_det.line_no,'D-ISS',item.item_code__plan,distorder_det.due_date , distorder.site_code__ship
...@@ -108,7 +108,7 @@ select item_code, due_date, sum(demand) demand , sum(supply) supply, tran_id,lin ...@@ -108,7 +108,7 @@ select item_code, due_date, sum(demand) demand , sum(supply) supply, tran_id,lin
AND ( item.Item_Ser <= '@itemserTo@') AND ( item.Item_Ser <= '@itemserTo@')
AND ( distorder_det.due_date >= to_date('@fromdate@')) AND ( distorder_det.due_date >= to_date('@fromdate@'))
AND ( distorder_det.due_date <= to_date('@todate@')) AND ( distorder_det.due_date <= to_date('@todate@'))
AND ( distorder.order_type not in ('@ordtypes@') ) AND ( distorder.order_type not in (@ordtypes@) )
AND ( case when distorder.status is null then 'P' else distorder.status end = 'P') AND ( case when distorder.status is null then 'P' else distorder.status end = 'P')
AND (case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) > 0 AND (case when qty_confirm is null then 0 else qty_confirm end - case when qty_received is null then 0 else qty_received end ) > 0
GROUP BY distorder.dist_order, distorder_det.line_no,'D-RCP',item.item_code__plan,distorder_det.due_date , distorder.site_code__dlv GROUP BY distorder.dist_order, distorder_det.line_no,'D-RCP',item.item_code__plan,distorder_det.due_date , distorder.site_code__dlv
...@@ -149,7 +149,7 @@ select item_code, due_date, sum(demand) demand , sum(supply) supply, tran_id,lin ...@@ -149,7 +149,7 @@ select item_code, due_date, sum(demand) demand , sum(supply) supply, tran_id,lin
AND ( item.item_code__plan <= '@itemcodeTo@') AND ( item.item_code__plan <= '@itemcodeTo@')
AND ( item.Item_Ser >= '@itemserFr@') AND ( item.Item_Ser >= '@itemserFr@')
AND ( item.Item_Ser <= '@itemserTo@') AND ( item.Item_Ser <= '@itemserTo@')
AND ( porder.pord_type not in ('@ordtypes@') ) AND ( porder.pord_type not in (@ordtypes@) )
AND ( porddet.dlv_date <= to_date('@todate@') ) AND ( porddet.dlv_date <= to_date('@todate@') )
GROUP BY porder.purc_order, porddet.line_no,'P-ORD',item.item_code__plan,porddet.dlv_date, porddet.site_code GROUP BY porder.purc_order, porddet.line_no,'P-ORD',item.item_code__plan,porddet.dlv_date, porddet.site_code
...@@ -160,7 +160,7 @@ select item_code, due_date, sum(demand) demand , sum(supply) supply, tran_id,lin ...@@ -160,7 +160,7 @@ select item_code, due_date, sum(demand) demand , sum(supply) supply, tran_id,lin
FROM STOCK a, INVSTAT b , LOCATION c,item d FROM STOCK a, INVSTAT b , LOCATION c,item d
WHERE a.loc_code = c.loc_code WHERE a.loc_code = c.loc_code
AND b.inv_stat = c.inv_stat AND b.inv_stat = c.inv_stat
AND NVL(b.stat_type, ' ') <> '@ordtypes@' AND NVL(b.stat_type, ' ') <> @ordtypes@
AND ( a.site_code >= ('@sitecodeFr@') ) AND ( a.site_code >= ('@sitecodeFr@') )
AND ( a.site_code <= ('@sitecodeTo@') ) AND ( a.site_code <= ('@sitecodeTo@') )
AND ( a.item_code ) >= ( '@itemcodeFr@' ) AND ( a.item_code ) >= ( '@itemcodeFr@' )
...@@ -209,7 +209,7 @@ select item_code, due_date, sum(demand) demand , sum(supply) supply, tran_id,lin ...@@ -209,7 +209,7 @@ select item_code, due_date, sum(demand) demand , sum(supply) supply, tran_id,lin
else workorder_bill.ALLOC_QTY end - case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end)<0 else workorder_bill.ALLOC_QTY end - case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end)<0
then ( case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end) then ( case when workorder_bill.ISS_QTY is null then 0 else workorder_bill.ISS_QTY end)
else (case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end) end > 0 else (case when workorder_bill.ALLOC_QTY is null then 0 else workorder_bill.ALLOC_QTY end) end > 0
and workorder.work_order in ( and workorder.work_order in ( SELECT workorder.work_order FROM workorder , item item1
WHERE item1.item_code = workorder.item_code WHERE item1.item_code = workorder.item_code
AND ( workorder.site_code >= ('@sitecodeFr@') ) AND ( workorder.site_code >= ('@sitecodeFr@') )
AND ( workorder.site_code <= ('@sitecodeTo@') ) AND ( workorder.site_code <= ('@sitecodeTo@') )
......
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