Done ticket GEPAFINBE-210

This commit is contained in:
Piyush
2025-05-02 18:26:22 +05:30
parent 21158b0ee4
commit 23ed5df464
44 changed files with 636 additions and 75 deletions

View File

@@ -2746,4 +2746,23 @@
<sqlFile dbms="postgresql"
path="db/dump/update_system_email_template_28_04_2025.sql"/>
</changeSet>
<changeSet id="22-04-2025_PK_192400" author="Piyush Kag">
<sqlFile dbms="postgresql"
path="db/dump/update_json_template_for_notification_22_04_2025.sql"/>
</changeSet>
<changeSet id="24-04-2025_PK_121820" author="Piyush Kag">
<addColumn tableName="email_log">
<column name="user_action_id" type="INTEGER">
<constraints foreignKeyName="fk_email_log_user_action" references="user_action(id)"/>
</column>
</addColumn>
</changeSet>
<changeSet id="30-04-2025_PK_125515" author="Piyush Kag">
<sqlFile dbms="postgresql"
path="db/dump/insert_system_email_template_for_application_submission_failure_30_04_2025.sql"/>
</changeSet>
</databaseChangeLog>

View File

@@ -0,0 +1,46 @@
INSERT INTO gepafin_schema.system_email_template (
template_name,
"type",
html_content,
subject,
"json",
"system",
is_deleted,
created_date,
updated_date,
email_scenario)
VALUES (
'Application submission failure notification',
'APPLICATION_SUBMISSION_FAILURE_NOTIFICATION',
'<html>
<body style="font-family: Arial, sans-serif; color: #333; line-height: 1.6;">
<div style="padding: 20px; border: 1px solid #ddd; border-radius: 8px; max-width: 650px; margin: auto;">
<p>Buongiorno,</p>
<p>
Si prega di notare che si è verificato un errore durante linvio dell email "{{scenario}}" per la chiamata: <strong>{{call_name}}</strong>. </p>
<p>
<strong>Dettagli:</strong><br/>
- ID Applicazione: {{application_id}}<br/>
- Nome Azienda: {{company_name}}<br/>
- Numero Protocollo: {{protocol_number}}<br/>
- ID Azione Utente: {{user_action_id}}
</p>
<p>
Si prega di effettuare i controlli appropriati e di adottare le misure correttive necessarie.
</p>
<p>Cordiali saluti,</p>
<p><strong>Gepafin S.p.a.</strong></p>
</div>
</body>
</html>',
'ERRORE INVIO EMAIL - BANDO {{call_name}}',
NULL,
true,
false,
CURRENT_TIMESTAMP,
CURRENT_TIMESTAMP,
'APPLICATION_SUBMISSION_FAILURE'
);

View File

@@ -0,0 +1,9 @@
INSERT INTO notification_type (notification_name, title, json_template, created_date, updated_date, is_deleted)
VALUES
('PEC_EMAIL_SENDING_FAILURE',
'Invio Email Fallito',
'Non è stato possibile inviare lemail per lo scenario: {{email_scenario}}.',
'2025-01-03T10:16:26.472Z',
'2025-01-03T10:16:26.472Z',
'false'
);

View File

@@ -400,3 +400,7 @@ insufficient.score.msg = Insufficient score to pass to the technical and economi
password.expired.for.login.to.odessa = Odessa login password has been expired.
invalid.user=Invalid user.
reminder.email.sent.failed.msg = Failed to send reminder email
resend.email.sent.success.msg = Email resend successfully
resend.email.sent.failed.msg = Failed to resend the email.

View File

@@ -390,4 +390,8 @@ insufficient.score.msg = Punteggio non sufficiente per passaggio alla valutazion
validation.table.message=I dati per il campo {0} non sono presenti.
password.expired.for.login.to.odessa = La password di accesso a Odessa è scaduta
invalid.user=Utente non valido.
invalid.user=Utente non valido.
reminder.email.sent.failed.msg = Impossibile inviare l'e-mail di promemoria
resend.email.sent.success.msg = Email reinviata con successo
resend.email.sent.failed.msg = Impossibile inviare nuovamente l'e-mail.