diff --git a/src/main/resources/db/changelog/db.changelog-1.0.0.xml b/src/main/resources/db/changelog/db.changelog-1.0.0.xml
index 52a0910f..37b87d81 100644
--- a/src/main/resources/db/changelog/db.changelog-1.0.0.xml
+++ b/src/main/resources/db/changelog/db.changelog-1.0.0.xml
@@ -1702,7 +1702,7 @@
UNIQUE_UUID = 't7jh5wfg9QXylNaTZkPoE'
-
+
select
setval('gepafin_schema.system_email_template_id_seq', (select
max(id)+1
@@ -1710,5 +1710,10 @@
-
+
+
+
+
+
diff --git a/src/main/resources/db/dump/insert_system_email_template_for_notification_mail_31_10_2024.sql b/src/main/resources/db/dump/insert_system_email_template_for_notification_mail_31_10_2024.sql
index fbb2c1c1..83cfc6c3 100644
--- a/src/main/resources/db/dump/insert_system_email_template_for_notification_mail_31_10_2024.sql
+++ b/src/main/resources/db/dump/insert_system_email_template_for_notification_mail_31_10_2024.sql
@@ -1,5 +1,14 @@
-UPDATE gepafin_schema.system_email_template
-SET html_content = '
+INSERT INTO gepafin_schema.system_email_template
+(
+ id, template_name, "type", html_content, subject, "json", "system",
+ is_deleted, created_date, updated_date
+)
+VALUES
+(
+ 3,
+ 'Instructional Aid/Request for Documentation Integration Template',
+ 'DOCUMENTATION_INTEGRATION_REQUEST',
+ '
RICHIESTA INTEGRAZIONE DOCUMENTALE
@@ -22,11 +31,27 @@ SET html_content = '
{{email_signature}}
- '
-WHERE "type" = 'DOCUMENTATION_INTEGRATION_REQUEST' AND "system" = true;
+ ',
+ 'RICHIESTA INTEGRAZIONE DOCUMENTALE - {{call_name}}',
+ NULL,
+ true,
+ false,
+ '2024-10-26 20:00:00',
+ '2024-10-26 20:00:00'
+);
-UPDATE gepafin_schema.system_email_template
-SET html_content = '
+-- Insert for INADMISSIBILITY_NOTIFICATION_DUE_TO_FAILURE
+INSERT INTO gepafin_schema.system_email_template
+(
+ id, template_name, "type", html_content, subject, "json", "system",
+ is_deleted, created_date, updated_date
+)
+VALUES
+(
+ 4,
+ 'Notification of Inadmissibility Due to Failure to Respond Template',
+ 'INADMISSIBILITY_NOTIFICATION_DUE_TO_FAILURE',
+ '
Comunicazione di non ammissibilità per mancata risposta a richiesta integrazione documentale
@@ -40,11 +65,27 @@ SET html_content = '
{{email_signature}}
- '
-WHERE "type" = 'INADMISSIBILITY_NOTIFICATION_DUE_TO_FAILURE' AND "system" = true;
+ ',
+ 'BANDO {{call_name}} - Domanda di finanziamento non ammessa {{company_name}}',
+ NULL,
+ true,
+ false,
+ '2024-10-26 20:00:00',
+ '2024-10-26 20:00:00'
+);
-UPDATE gepafin_schema.system_email_template
-SET html_content = '
+-- Insert for ADMISSIBILITY_NOTIFICATION
+INSERT INTO gepafin_schema.system_email_template
+(
+ id, template_name, "type", html_content, subject, "json", "system",
+ is_deleted, created_date, updated_date
+)
+VALUES
+(
+ 5,
+ 'Notification of Admissibility Template',
+ 'ADMISSIBILITY_NOTIFICATION',
+ '
Buongiorno,
@@ -56,11 +97,27 @@ SET html_content = '
{{email_signature}}
- '
-WHERE "type" = 'ADMISSIBILITY_NOTIFICATION' AND "system" = true;
+ ',
+ 'BANDO {{call_name}} – Esito positivo istruttoria di ammissibilità {{company_name}}',
+ NULL,
+ true,
+ false,
+ '2024-10-26 20:00:00',
+ '2024-10-26 20:00:00'
+);
-UPDATE gepafin_schema.system_email_template
-SET html_content = '
+-- Insert for INADMISSIBILITY_NOTIFICATION
+INSERT INTO gepafin_schema.system_email_template
+(
+ id, template_name, "type", html_content, subject, "json", "system",
+ is_deleted, created_date, updated_date
+)
+VALUES
+(
+ 6,
+ 'Notification of Inadmissibility Template',
+ 'INADMISSIBILITY_NOTIFICATION',
+ '
Buongiorno,
@@ -74,5 +131,11 @@ SET html_content = '
{{email_signature}}
- '
-WHERE "type" = 'INADMISSIBILITY_NOTIFICATION' AND "system" = true;
+ ',
+ 'BANDO {{call_name}} – Esito negativo istruttoria di ammissibilità {{company_name}}',
+ NULL,
+ true,
+ false,
+ '2024-10-26 20:00:00',
+ '2024-10-26 20:00:00'
+);
\ No newline at end of file
diff --git a/src/main/resources/db/dump/update_system_email_template_for_notification_mail_04_11_2024_1.sql b/src/main/resources/db/dump/update_system_email_template_for_notification_mail_04_11_2024_1.sql
new file mode 100644
index 00000000..fbb2c1c1
--- /dev/null
+++ b/src/main/resources/db/dump/update_system_email_template_for_notification_mail_04_11_2024_1.sql
@@ -0,0 +1,78 @@
+UPDATE gepafin_schema.system_email_template
+SET html_content = '
+
+
+
RICHIESTA INTEGRAZIONE DOCUMENTALE
+
Buongiorno,
+
In riferimento alla domanda di concessione di Finanziamento agevolato a valere sul Fondo prestiti
+ {{call_name}} di cui al Protocollo n. {{protocol_number}} del
+ {{protocol_date}} e {{protocol_time}}, alla luce dell’attività istruttoria svolta,
+ segnaliamo quanto segue:
+
+
{{note}}
+
Vi invitiamo a fornire quanto sopra richiesto integrando la documentazione sia caricandola all’interno dello sportello
+ online {{platform_link}} che inviandola a mezzo PEC all’indirizzo
+ {{legal_mail}} entro e non oltre 10 giorni dal ricevimento della presente comunicazione,
+ precisando che, in caso di mancata ricezione nei termini indicati, saremo costretti a non prendere in considerazione la Vostra richiesta di finanziamento.
+
Vi informiamo che per la ricezione della PEC farà fede la ricevuta di avvenuta consegna che attesterà il buon esito
+ dell’invio. La documentazione trasmessa e le informazioni fornite saranno processate dall''istruttore assegnatario della pratica.
+
Distinti Saluti,
+
{{email_signature}}
+
+
+ '
+WHERE "type" = 'DOCUMENTATION_INTEGRATION_REQUEST' AND "system" = true;
+
+UPDATE gepafin_schema.system_email_template
+SET html_content = '
+
+
+
Comunicazione di non ammissibilità per mancata risposta a richiesta integrazione documentale
+
Buongiorno,
+
Con posta elettronica certificata del {{date_time_emailSend}}, vi abbiamo comunicato che i documenti richiesti
+ dal Gestore sarebbero dovuti pervenire entro 10 giorni dal ricevimento di detta comunicazione.
+ Trascorso il termine senza la ricezione dei documenti richiesti, il Gestore non ha potuto prendere in considerazione la richiesta di finanziamento.
+
È possibile presentare ricorso tramite modello disponibile nello sportello online
+ {{platform_link}} entro 10 giorni dalla ricezione di questa comunicazione.
+
Distinti Saluti,
+
{{email_signature}}
+
+
+ '
+WHERE "type" = 'INADMISSIBILITY_NOTIFICATION_DUE_TO_FAILURE' AND "system" = true;
+
+UPDATE gepafin_schema.system_email_template
+SET html_content = '
+
+
+
Buongiorno,
+
In riferimento alla domanda di concessione di Finanziamento agevolato “{{call_name}}” di cui al
+ Protocollo n. {{protocol_number}} del {{protocol_date}} alle {{protocol_time}}, l’istruttoria di ammissibilità
+ è stata completata con esito positivo.
+
Seguirà una comunicazione relativa alla valutazione tecnica ed economico-finanziaria ai fini della valutazione finale.
+
Distinti Saluti,
+
{{email_signature}}
+
+
+ '
+WHERE "type" = 'ADMISSIBILITY_NOTIFICATION' AND "system" = true;
+
+UPDATE gepafin_schema.system_email_template
+SET html_content = '
+
+
+
Buongiorno,
+
In riferimento alla domanda di concessione di Finanziamento agevolato “{{call_name}}” di cui al
+ Protocollo n. {{protocol_number}} del {{protocol_date}} alle {{protocol_time}},
+ l''istruttoria di ammissibilità è stata completata con esito negativo.
+
Motivazioni: {{form_text}}
+
È possibile presentare ricorso tramite modello disponibile nello sportello online
+ {{platform_link}} entro 10 giorni dalla ricezione di questa comunicazione.
+
Distinti Saluti,
+
{{email_signature}}
+
+
+ '
+WHERE "type" = 'INADMISSIBILITY_NOTIFICATION' AND "system" = true;