 
Insert into itm2menu (APPLICATION,LEVEL_1,LEVEL_2,LEVEL_3,LEVEL_4,LEVEL_5,WIN_NAME,DESCR,COMMENTS,MENU_PATH,ICON_PATH,CLOSE_ICON,OPEN_ICON,OBJ_TYPE,CHG_DATE,CHG_TERM,CHG_USER) values ('DIS',4,19,1,0,0,'w_cust_stock_item','Auto Stock Replenishment for item',null,'DIS.4.19.1.0.0',null,null,null,null,null,null,null);

Insert into transetup (TRAN_WINDOW,SAVE_FLAG,VAL_FLAG,KEY_FLAG,KEY_STRING,UDF_1,UDF_2,UDF_3,UDF_4,UDF_5,REPEATE_ADD,CHG_DATE,CHG_USER,CHG_TERM,EDI_OPTION,SITE_ACC_COL,CONFIRM_COL,CONFIRM_VAL,REPEAT_ADD_DET,LOAD_MODE,AUTO_CONFIRM,LEDG_POST_CONF,CHG_DATE_ON_CONF,TRAN_ID_COL,MAIL_OPTION,CONFIRM_MODE,GARBAGE_OPT,VAL_FLAG_EDI,VERIFY_PASSWORD,TABLE_NAME,APPLICATION,TABLE_DESC,TRAN_DATE_COL,SALES_PERS_ACC_COL,CUST_ACC_COL,SUPP_ACC_COL,ITEM_SER_ACC_COL,EMP_ACC_COL,WORKFLOW_OPT,TRAN_ID__FROM,TRAN_ID__TO,MULTITIRE_OPT,REF_SER,VIEW_MODE,TABLE_NAME_DET1,TABLE_NAME_DET2,TABLE_NAME_DET3,TAX_FORMS,SIGN_STATUS,USER_TRAN_WINDOW,CUSTOM_PREVIEW_OBJ,CHILDDATA_ARGOPT,IGNOREERRLIST_ONLOAD,EDIT_TMPLT,WRKFLW_INIT,FORMAL_ARGS,EDIT_OPT,AUDIT_TRAIL_OPT,EDITTAX,CACHE_OPT,OPTIMIZE_MODE,EDIT_EXPR,TRANSFER_MODE,RATE_COL,QTY_COL,RCP_CACHE_STATUS,PRINT_CONTROL,ITEM_SER_ACC_CODE,PROFILE_ID__RES,PERIOD_OPTION,TRAN_COMPL_MSG,WRKFLW_PRIORITY,EXEC_TYPE,DISP_META_DATA) values ('w_cust_stock_item','2','2','A','seq03',null,null,null,null,null,'Y',to_timestamp('04-OCT-08','DD-MON-RR HH.MI.SSXFF AM'),'base      ','base           ','0','SITE_CODE','STATUS','R',null,null,null,'N','N','TRAN_ID','0',null,null,null,null,null,null,null,null,null,null,null,null,null,'0',null,null,null,'SCH_AP',null,null,'F',null,null,null,null,null,'2',null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null);

update system_events set service_code = 'poic_default_ejb' , comp_type  = 'EJB' ,comp_name = 'CustStock' 
where obj_name ='cust_stock' and event_code ='post_item_change';

update system_events set service_code = 'prv_default_ejb' , comp_type  = 'EJB' ,comp_name = 'CustStock' 
where obj_name ='cust_stock' and event_code ='pre_validate';

update system_events set service_code = 'poic_default_ejb'  
where obj_name ='cust_stock_item' and event_code ='post_item_change';

update system_events set service_code = 'prv_default_ejb' 
where obj_name ='cust_stock_item' and event_code ='pre_validate';


commit;
