=============================================
wf role
=============================================
INSERT INTO wf_role 
(
	role_code ,
	role_type ,
	event_carr ,
	descr ,
	user_id ,
	subject_str,
	include_data,
	chg_date,
	chg_user,
	chg_term,
	role_entity,
	role_entity_sql,
	email_addr,
	dyn_role_ref
)
VALUES (
	'ACT_EX',
	'S',
	'S',
	'ACCOUNTS EXECUTIVE',
	'BASE',
	'Accounts Executive Approval',
	NULL,
	TO_DATE('11-09-2012 11:08:58','DD-MM-YYYY HH24:MI:SS'),
	'BASE',
	'BASE',
	'E',
	'SELECT EMP_CODE FROM EMPLOYEE WHERE EMP_CODE=?',
	'swakade@baseinformation.com',
	NULL);
commit;
/
=============================================
INSERT INTO wf_role 
(
	role_code ,
	role_type ,
	event_carr ,
	descr ,
	user_id ,
	subject_str,
	include_data,
	chg_date,
	chg_user,
	chg_term,
	role_entity,
	role_entity_sql,
	email_addr,
	dyn_role_ref
)
VALUES (
	'ACT_MGR   ',
	'S',
	'S',
	'ACCOUNTS MANAGER                                            ',
	'BASE      ',
	'Accounts  Manager  Approval                                                                                                                                                                             ',
	NULL,
	TO_DATE('11-09-2012 11:08:58','DD-MM-YYYY HH24:MI:SS'),
	'BASE      ',
	'BASE           ',
	'E',
	'SELECT EMP_CODE FROM EMPLOYEE WHERE EMP_CODE=?',
	'swakade@baseinformation.com',
	NULL);
commit;
/
=============================================
mail format for payable_voucher,fin_payment,
fin_credit_note,fin_debit_note
=============================================
INSERT INTO mail_format 
(
	format_code,
	format_type,
	send_to,
	copy_to,
	blind_copy,
	subject,
	body_text,
	body_comp ,
	priority,
	delivery_report,
	return_receipt,
	mail_application,
	mail_server,
	mail_box,
	mail_id,
	attach_type,
	attach_text,
	mail_generation,
	win_name,
	cond_method,
	fn_name
)
VALUES (
	'ACTEXAPRVFINPAY',
	'T',
	'[(E)ROLE_CODE]',
	NULL,
	NULL,
	'FIN-Request for approval : Finance Payment<Detail1.tran_id> assigned to  Account Executive',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;
/
=============================================
INSERT INTO mail_format 
(
	format_code,
	format_type,
	send_to,
	copy_to,
	blind_copy,
	subject,
	body_text,
	body_comp ,
	priority,
	delivery_report,
	return_receipt,
	mail_application,
	mail_server,
	mail_box,
	mail_id,
	attach_type,
	attach_text,
	mail_generation,
	win_name,
	cond_method,
	fn_name
)
VALUES (
	'ACTMGRAPRVFINCRENOTE',
	'T',
	'[(E)ROLE_CODE]',
	NULL,
	NULL,
	'FIN-Request for approval : Finance Credit Note<Detail1.tran_id> assigned to  Account Manager',
	NULL,
	1,
	1,
	NULL,
	NULL,
	'M',
	'192.168.0.142',
	'192.168.0.142',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;
/
=============================================
INSERT INTO mail_format 
(
	format_code,
	format_type,
	send_to,
	copy_to,
	blind_copy,
	subject,
	body_text,
	body_comp ,
	priority,
	delivery_report,
	return_receipt,
	mail_application,
	mail_server,
	mail_box,
	mail_id,
	attach_type,
	attach_text,
	mail_generation,
	win_name,
	cond_method,
	fn_name
)
VALUES (
	'ACTEXAPRVFINCRENOTE',
	'T',
	'[(E)ROLE_CODE]',
	NULL,
	NULL,
	'FIN-Request for approval : Finance Credit Note<Detail1.tran_id> assigned to  Account Executive',
	NULL,
	1,
	1,
	NULL,
	NULL,
	'M',
	'192.168.0.142',
	'192.168.0.142',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;
/
=============================================
INSERT INTO mail_format 
(
	format_code,
	format_type,
	send_to,
	copy_to,
	blind_copy,
	subject,
	body_text,
	body_comp ,
	priority,
	delivery_report,
	return_receipt,
	mail_application,
	mail_server,
	mail_box,
	mail_id,
	attach_type,
	attach_text,
	mail_generation,
	win_name,
	cond_method,
	fn_name
)

VALUES (
	'ACTMGRAPRVFINDEBNOTE',
	'T',
	'[(E)ROLE_CODE]',
	NULL,
	NULL,
	'FIN-Request for approval : Finance Debit Note<Detail1.tran_id> assigned to  Account Manager',
	NULL,
	1,
	1,
	NULL,
	NULL,
	'M',
	'192.168.0.142',
	'192.168.0.142',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;
/
=============================================
INSERT INTO mail_format 
(
	format_code,
	format_type,
	send_to,
	copy_to,
	blind_copy,
	subject,
	body_text,
	body_comp ,
	priority,
	delivery_report,
	return_receipt,
	mail_application,
	mail_server,
	mail_box,
	mail_id,
	attach_type,
	attach_text,
	mail_generation,
	win_name,
	cond_method,
	fn_name
)
 VALUES (
	'ACTEXAPRVFINDEBNOTE',
	'T',
	'[(E)ROLE_CODE]',
	NULL,
	NULL,
	'FIN-Request for approval : Finance Debit Note<Detail1.tran_id> assigned to  Account Executive',
	NULL,
	1,
	1,
	NULL,
	NULL,
	'M',
	'192.168.0.142',
	'192.168.0.142',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;
/
=============================================
INSERT INTO mail_format 
(
	format_code,
	format_type,
	send_to,
	copy_to,
	blind_copy,
	subject,
	body_text,
	body_comp ,
	priority,
	delivery_report,
	return_receipt,
	mail_application,
	mail_server,
	mail_box,
	mail_id,
	attach_type,
	attach_text,
	mail_generation,
	win_name,
	cond_method,
	fn_name
)
 VALUES (
	'ACTEXAPRVPAYVOU',
	'T',
	'[(E)ROLE_CODE]',
	NULL,
	NULL,
	'FIN-Request for approval : Finance Payable voucher<Detail1.tran_id> assigned to  Account Executive',
	NULL,
	1,
	1,
	NULL,
	NULL,
	'M',
	'192.168.0.142',
	'192.168.0.142',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;
/
=============================================
INSERT INTO mail_format 
(
	format_code,
	format_type,
	send_to,
	copy_to,
	blind_copy,
	subject,
	body_text,
	body_comp ,
	priority,
	delivery_report,
	return_receipt,
	mail_application,
	mail_server,
	mail_box,
	mail_id,
	attach_type,
	attach_text,
	mail_generation,
	win_name,
	cond_method,
	fn_name
)
VALUES (
	'ACTMGRAPRVFINPAY',
	'T',
	'[(E)ROLE_CODE]',
	NULL,
	NULL,
	'FIN-Request for approval : Finance Payment<Detail1.tran_id> assigned to  Account Manager',
	NULL,
	1,
	1,
	NULL,
	NULL,
	'M',
	'192.168.0.142',
	'192.168.0.142',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;
/
=============================================
INSERT INTO mail_format 
(
	format_code,
	format_type,
	send_to,
	copy_to,
	blind_copy,
	subject,
	body_text,
	body_comp ,
	priority,
	delivery_report,
	return_receipt,
	mail_application,
	mail_server,
	mail_box,
	mail_id,
	attach_type,
	attach_text,
	mail_generation,
	win_name,
	cond_method,
	fn_name
)
VALUES (
	'ACTMGRAPRVPAYVOU',
	'T',
	'[(E)ROLE_CODE]',
	NULL,
	NULL,
	'FIN-Request for approval : Finance Payable voucher<Detail1.tran_id> assigned to  Account Manager',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;
/
=============================================


INSERT INTO mail_format 
(
	format_code,
	format_type,
	send_to,
	copy_to,
	blind_copy,
	subject,
	body_text,
	body_comp ,
	priority,
	delivery_report,
	return_receipt,
	mail_application,
	mail_server,
	mail_box,
	mail_id,
	attach_type,
	attach_text,
	mail_generation,
	win_name,
	cond_method,
	fn_name
)
VALUES (
	'ACTEXAPRVPURCHASEVOUCH',
	'T',
	'[(E)ROLE_CODE]',
	NULL,
	NULL,
	'FIN-Request for approval : Finance Payment<Detail1.tran_id> assigned to  Account Executive',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;
-------------------------------------
INSERT INTO mail_format 
(
	format_code,
	format_type,
	send_to,
	copy_to,
	blind_copy,
	subject,
	body_text,
	body_comp ,
	priority,
	delivery_report,
	return_receipt,
	mail_application,
	mail_server,
	mail_box,
	mail_id,
	attach_type,
	attach_text,
	mail_generation,
	win_name,
	cond_method,
	fn_name
)
VALUES (
	'ACTMGRAPRVPURCHASEVOUCH',
	'T',
	'[(E)ROLE_CODE]',
	NULL,
	NULL,
	'FIN-Request for approval : Finance Payment<Detail1.tran_id> assigned to  Account Executive',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;

--------------------------------------------------------------------------
INSERT INTO mail_format 
(
	format_code,
	format_type,
	send_to,
	copy_to,
	blind_copy,
	subject,
	body_text,
	body_comp ,
	priority,
	delivery_report,
	return_receipt,
	mail_application,
	mail_server,
	mail_box,
	mail_id,
	attach_type,
	attach_text,
	mail_generation,
	win_name,
	cond_method,
	fn_name
)
VALUES (
	'ACTMGRAPRVFINJOURVOUCH',
	'T',
	'[(E)ROLE_CODE]',
	NULL,
	NULL,
	'FIN-Request for approval : Finance Credit Note<Detail1.tran_id> assigned to  Account Manager',
	NULL,
	1,
	1,
	NULL,
	NULL,
	'M',
	'192.168.0.139',
	'192.168.0.139',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;
/
=============================================
INSERT INTO mail_format 
(
	format_code,
	format_type,
	send_to,
	copy_to,
	blind_copy,
	subject,
	body_text,
	body_comp ,
	priority,
	delivery_report,
	return_receipt,
	mail_application,
	mail_server,
	mail_box,
	mail_id,
	attach_type,
	attach_text,
	mail_generation,
	win_name,
	cond_method,
	fn_name
)
VALUES (
	'ACTEXAPRVFINJOURVOUCH',
	'T',
	'[(E)ROLE_CODE]',
	NULL,
	NULL,
	'FIN-Request for approval : Finance Credit Note<Detail1.tran_id> assigned to  Account Executive',
	NULL,
	1,
	1,
	NULL,
	NULL,
	'M',
	'192.168.0.139',
	'192.168.0.139',
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL,
	NULL);
commit;
