/* SQL Updated by SAGAR on 28/MAR/14 for Incidental Charges(DI3LSUN001) */

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,mob_deploy,close_icon)
VALUES ('FRT',0,0,0,0,0,'-','Freight Calculation',NULL,'FRT.0.0.0.0.0',NULL,NULL,'BASE','BASE',SYSDATE,NULL,NULL,NULL);

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,mob_deploy,close_icon)
VALUES ('FRT',1,0,0,0,0,'-','Freight  Master and Transaction',NULL,'FRT.1.0.0.0.0',NULL,NULL,'BASE','BASE',SYSDATE,NULL,NULL,NULL);

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,mob_deploy,close_icon)
VALUES ('FRT',1,1,0,0,0,'w_inc_charges','Incidental Charges',NULL,'FRT.1.1.0.0.0','e12_logo.gif','T','BASE','BASE',SYSDATE,NULL,NULL,NULL);

INSERT INTO transetup (tran_window,save_flag,val_flag,key_flag,key_string,repeate_add,chg_date,chg_user,chg_term,edi_option,site_acc_col,confirm_col,confirm_val,auto_confirm,ledg_post_conf,tran_id_col,workflow_opt,ref_ser,tax_forms,wrkflw_init,audit_trail_opt) 
VALUES ('w_inc_charges','2','2','M',NULL,'N',SYSDATE,'BASE','BASE','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'INCRG',NULL,NULL,NULL);

INSERT INTO obj_forms 	(win_name,title,obj_brow_name,obj_edit_name,cross_update_expr,expr_fld_info,target_fld_info,expr_comment,form_no )
VALUES ('w_inc_charges','Inc Charges','d_inc_charges_brow','d_inc_charges_edit',NULL,NULL,NULL,NULL,'1');

INSERT INTO obj_actions (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ)
VALUES ('inc_charges',1,'add.gif','Adding New','a','a','A','Add','1',NULL,NULL,'S',NULL,SYSDATE,'BASE','BASE',NULL);

INSERT INTO obj_actions (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ)
VALUES ('inc_charges',2,'edit.gif','Editing Existing Record','a','a','E','Edit','1',NULL,NULL,'S',NULL,SYSDATE,'BASE','BASE',NULL);

INSERT INTO obj_actions (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ) 
VALUES ('inc_charges',4,'save.gif','Saving','a','a','S','Save','1',NULL,NULL,'S',NULL,SYSDATE,'BASE','BASE',NULL);

INSERT INTO obj_actions (OBJ_NAME,LINE_NO,IMAGE,DESCRIPTION,SERVICE_CODE,INTERACTIVE,RIGHTS_CHAR,TITLE,FORM_NO,SERVICE_HANDLER,PLACEMENT,ACTION_TYPE,TRAN_TYPE,CHG_DATE,CHG_TERM,CHG_USER,IS_CONFIRMATION_REQ)
VALUES ('inc_charges',21,'menu.bmp','View Audit Trail','audit_trail','1','X','View Audit','1','1','1','U',NULL,SYSDATE,'BASE','BASE',NULL);

INSERT INTO system_events (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT)
VALUES ('inc_charges','audit_trail','1','project_audit_trail',NULL,'0',SYSDATE,'BASE','BASE','2',NULL,NULL,NULL);

INSERT INTO system_events (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT)
VALUES ('inc_charges','post_item_change','1','poic_default_ejb',NULL,'0',SYSDATE,'BASE','BASE','2','EJB','IncidentChargeIC',NULL);

INSERT INTO system_events (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT)
VALUES ('inc_charges','post_save','1','createedi',NULL,'0',SYSDATE,'BASE','BASE','2','WSR','nvo_business_object_win_methods',NULL);

INSERT INTO system_events (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT)
VALUES ('inc_charges','post_validate','1','post_gen_val',NULL,'0',SYSDATE,'BASE','BASE','2','EJB','GenValidate',NULL);

INSERT INTO system_events (OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,METHOD_RULE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME,COMM_FORMAT)
VALUES ('inc_charges','pre_validate','1','prv_default_ejb',NULL,'0',SYSDATE,'BASE','BASE','2','EJB','IncidentChargeIC',NULL);

INSERT INTO obj_itemchange (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY)
VALUES ('inc_charges','1','inc_chg',NULL);

INSERT INTO pophelp (FIELD_NAME,MOD_NAME,SQL_STR,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,DEFAULT_COL,POP_ALIGN,HELP_OPTION) 
VALUES ('INC_CHG','X','select rtrim(fld_value),descr from gencodes where fld_name = ''INC_CHG'' and mod_name = ''X''','Incidental Charges',0,0,SYSDATE,'BASE','BASE','0',0,'C','0');

INSERT INTO MESSAGES (msg_no , msg_str , msg_descr ,  msg_type ,  msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMNULINCCD', 'Empty Inc. Charges Code !','Incidental Charges Code should not be Empty !', 'E', 'Y', SYSDATE, 'BASE', 'BASE');

INSERT INTO MESSAGES (msg_no , msg_str , msg_descr ,  msg_type ,  msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMFRMTMVLD', 'Invalid From Day/Time !','From Day/Time already exists for the same Incidental Charges defined !', 'E', 'Y', SYSDATE, 'BASE', 'BASE');

INSERT INTO MESSAGES (msg_no , msg_str , msg_descr ,  msg_type ,  msg_opt , chg_date , chg_user , chg_term )
VALUES ('VTFMTOTMVD', 'Invalid To Day/Time','To Day/Time Can not be less than From Day/Time !', 'E', 'Y', SYSDATE, 'BASE', 'BASE');

INSERT INTO MESSAGES (msg_no , msg_str , msg_descr ,  msg_type ,  msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMNLPENLTY', 'Empty Penalty Type !','Penalty Type should not be Empty !', 'E', 'Y', SYSDATE, 'BASE', 'BASE');

INSERT INTO MESSAGES (msg_no , msg_str , msg_descr ,  msg_type ,  msg_opt , chg_date , chg_user , chg_term )
VALUES ('VMNULTRTYP', 'Empty Transit Type !','Transit Type should not be Empty !', 'E', 'Y', SYSDATE, 'BASE', 'BASE');

