Commit 1c047fb4 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@217023 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b52fede8
......@@ -228,17 +228,17 @@ GROUP BY workorder_bill.work_order,case when rtrim(siteitem.supp_sour) = 'M' th
select proj_est_bsl_item.tran_id, TO_CHAR(proj_est_bsl_item.line_no), 'PRJBSL' as tran_ser, proj_est_bsl_item.item_code,
proj_est_bsl_item.start_date as due_date, sum(case when proj_est_bsl_item.quantity is null then 0 else proj_est_bsl_item.quantity end ) as demand ,
0 as supply, floor_mst.site_code
from proj_est_bsl_item, floor_mst
where ( proj_est_bsl_item.floor_id= floor_mst.tran_id )
AND ( floor_mst.site_code >= '@sitecodeFr@' )
AND ( floor_mst.site_code <= '@sitecodeTo@' )
AND ( proj_est_bsl_item.item_code >= '@itemcodeFr@')
AND ( proj_est_bsl_item.item_code <= '@itemcodeTo@')
AND ( proj_est_bsl_item.start_date >= to_date('01-Jan-20'))
AND ( proj_est_bsl_item.start_date <= to_date('@todate@'))
GROUP BY
proj_est_bsl_item.tran_id, TO_CHAR(proj_est_bsl_item.line_no),'PRJBSL', proj_est_bsl_item.item_code, proj_est_bsl_item.start_date,
floor_mst.site_code
from proj_est_bsl_item, floor_mst
where ( proj_est_bsl_item.floor_id= floor_mst.tran_id )
AND ( floor_mst.site_code >= '@sitecodeFr@' )
AND ( floor_mst.site_code <= '@sitecodeTo@' )
AND ( proj_est_bsl_item.item_code >= '@itemcodeFr@')
AND ( proj_est_bsl_item.item_code <= '@itemcodeTo@')
AND ( proj_est_bsl_item.start_date >= to_date('@fromdate@'))
AND ( proj_est_bsl_item.start_date <= to_date('@todate@'))
GROUP BY
proj_est_bsl_item.tran_id, TO_CHAR(proj_est_bsl_item.line_no),'PRJBSL', proj_est_bsl_item.item_code, proj_est_bsl_item.start_date,
floor_mst.site_code
) ALIAS
GROUP BY item_code,due_date ,tran_id,line_no,tran_ser,site_code
HAVING sum(demand) <> 0 or sum(supply) <> 0;
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