 /* SQL Updated by Priyanka Shinde on 26/MAR/14 for Freight Rate(DI3GSUN047)  */
ALTER TABLE TARODEV.FREIGHT_RATE ADD TRANS_MODE                      CHAR(1);
ALTER TABLE TARODEV.FREIGHT_RATE ADD MIN_WEIGHT                       NUMBER(14,3);
ALTER TABLE TARODEV.FREIGHT_RATE ADD MAX_WEIGHT                       NUMBER(14,3);


INSERT INTO system_events(OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME)
VALUES ('frt_rate','post_item_change','1','poic_default_ejb','0',SYSDATE,'Priyanka','Priyanka','2','EJB','FreightRateIC');

INSERT INTO system_events(OBJ_NAME,EVENT_CODE,EVENT_CONTEXT,SERVICE_CODE,OVERWRITE_CORE,CHG_DATE,CHG_USER,CHG_TERM,RESULT_HANDLE,COMP_TYPE,COMP_NAME)
VALUES ('frt_rate','pre_validate','1','prv_default_ejb','0',SYSDATE,'Priyanka','Priyanka','2','EJB','FreightRateIC');

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 ('VMCHGAMT', 'Invalid Amount','Amount should be greater than Zero. !', '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 ('VMSEQ2', 'Invalid Sequence','Sequence should not be Zero. !', '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 ('VMMINWGT', 'Invalid Weight','Min weight should be less than max weight.. !', '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 ('VTFRLNTEXT', 'Invalid FreightList','Freight List does not exists', '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 ('VTTRMODE', 'Invalid TransporterMode','Transporter Mode cannot 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 ('VTMINWGT', 'Invalid MinimumWeight','Minimum Weight cannot 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 ('VTMAXWGT', 'Invalid MaximumWeight','MaximumW Weight cannot be empty.', 'E', 'Y', SYSDATE, 'BASE', 'BASE')

 INSERT INTO pophelp (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGHT,CHG_DATE,CHG_USER,CHG_TERM,DIST_OPT,FILTER_STRING,SQL_INPUT,DEFAULT_COL,POP_ALIGN,QUERY_MODE,PAGE_CONTEXT,POPHELP_COLS,POPHELP_SOURCE,MULTI_OPT,HELP_OPTION,POPUP_XSL_NAME) 
VALUES ('TRANS_MODE','X','select rtrim(fld_value),descr from gencodes where fld_name = ''TRANS_MODE'' and mod_name = ''X''',NULL,'TRANSPORTER MODE ',0,0,SYSDATE,'BASE','BASE','0',NULL,NULL,0,'C',NULL,NULL,NULL,NULL,NULL,'0',NULL);