Commit a40062be authored by sabita.prasad's avatar sabita.prasad

Today made changes for wave preview report in disparm for var_name='='WAVE_REP_OBJ_NAME''


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92250 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d842eb04
INSERT INTO itm2menu
(
application ,
level_1 ,
level_2,
level_3 ,
level_4 ,
level_5,
win_name ,
descr ,
comments ,
menu_path,
icon_path ,
obj_type ,
chg_user,
chg_term ,
chg_date ,
open_icon)
VALUES (
'DIS',
8,
11,
18,
0,
0,
'w_d_er5',
'ER-5',
NULL,
'DIS.8.11.18.0.0',
'e12_logo.gif',
'R',
NULL,
NULL,
NULL,
NULL);
COMMIT;
\ No newline at end of file
create or replace
FUNCTION FN_ER6_ISS_RECEIPT ---CREATED BY ANAND DESAI ON 23/10/2012 FOR ER6 REPORT
(FN_ITEM_CODE IN BOMDET.ITEM_CODE%TYPE,
from_date in date,
to_date in date,
ls_var_name in disparm.var_name%type
)
RETURN NUMBER
IS
QTY NUMBER(20,3);
LS_VAR_VALUE VARCHAR2(1200);
begin
select var_value into ls_var_value
from disparm
where var_name = ls_var_name;
select abs(sum(eff_qty)) into qty
from invtrace,workorder
where INVTRACE.ORDER_ID =WORKORDER.WORK_ORDER
AND invtrace.item_code = fn_item_code
and tran_date between from_date and to_date
and instr(','||ls_var_value||',',','||trim(ref_ser)||',') >0;
RETURN (QTY);
END;
\ No newline at end of file
create or replace
FUNCTION FN_ER6_RECEIPT ---CREATED BY ANAND DESAI ON 23/10/2012 FOR ER6 REPORT
(FN_ITEM_CODE IN BOMDET.ITEM_CODE%TYPE,
from_date in date,
to_date in date,
ls_var_name in disparm.var_name%type
)
RETURN NUMBER
IS
QTY NUMBER(20,3);
LS_VAR_VALUE VARCHAR2(1200);
begin
select var_value into ls_var_value
from disparm
where var_name = ls_var_name;
select abs(sum(eff_qty)) into qty
from invtrace
where invtrace.item_code = fn_item_code
and tran_date between from_date and to_date
and instr(','||ls_var_value||',',','||trim(ref_ser)||',') >0;
RETURN (QTY);
END;
\ No newline at end of file
create or replace
FUNCTION FN_ER6_SUM_WO_FG_QTY ---CREATED BY ANAND DESAI ON 23/10/2012 FOR ER6 REPORT
(FN_BOM_CODE IN BOM.BOM_CODE%TYPE,
FROM_DATE IN DATE,
TO_DATE IN DATE
)
RETURN NUMBER IS
QTY_FG_MANU NUMBER(20,3);
begin
select SUM(quantity) into qty_fg_manu
from workorder
where bom_code = fn_bom_code
AND REL_DATE BETWEEN FROM_DATE AND TO_DATE;
RETURN(QTY_FG_MANU);
END;
\ No newline at end of file
INSERT INTO itm2menu
(
application ,
level_1 ,
level_2,
level_3 ,
level_4 ,
level_5,
win_name ,
descr ,
comments ,
menu_path,
icon_path ,
obj_type ,
chg_user,
chg_term ,
chg_date ,
open_icon)
VALUES (
'DIS',
8,
11,
19,
0,
0,
'w_d_er6',
'ER-6',
NULL,
'DIS.8.11.19.0.0',
'e12_logo.gif',
'R',
NULL,
NULL,
NULL,
NULL);
COMMIT;
\ No newline at end of file
update disparm
set Var_value ='wave_task_main_1'
where Var_name ='WAVE_REP_OBJ_NAME'
and Var_type ='S';
commit;
\ No newline at end of file
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