From fe54fc132ffb69ed7995ce5141a843d00960dae0 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Thu, 18 Jan 2024 18:41:18 +0200 Subject: [PATCH] Support scheduling reports --- lib/data/models/schedule_model.dart | 2 ++ lib/utils/i18n.dart | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/lib/data/models/schedule_model.dart b/lib/data/models/schedule_model.dart index 4a1be8277..cfdcfa435 100644 --- a/lib/data/models/schedule_model.dart +++ b/lib/data/models/schedule_model.dart @@ -80,10 +80,12 @@ abstract class ScheduleEntity extends Object static const TEMPLATE_EMAIL_STATEMENT = 'email_statement'; static const TEMPLATE_EMAIL_RECORD = 'email_record'; + static const TEMPLATE_EMAIL_REPORT = 'email_report'; static const TEMPLATES = [ TEMPLATE_EMAIL_STATEMENT, TEMPLATE_EMAIL_RECORD, + TEMPLATE_EMAIL_REPORT, ]; @override diff --git a/lib/utils/i18n.dart b/lib/utils/i18n.dart index 4a4b757b1..debe6777c 100644 --- a/lib/utils/i18n.dart +++ b/lib/utils/i18n.dart @@ -18,6 +18,7 @@ mixin LocalizationsProvider on LocaleCodeAware { static final Map> _localizedValues = { 'en': { // STARTER: lang key - do not remove comment + 'email_report': 'Email Report', 'host': 'Host', 'port': 'Port', 'encryption': 'Encryption', @@ -114262,6 +114263,10 @@ mixin LocalizationsProvider on LocaleCodeAware { _localizedValues[localeCode]!['username'] ?? _localizedValues['en']!['username']!; + String get emailReport => + _localizedValues[localeCode]!['email_report'] ?? + _localizedValues['en']!['email_report']!; + // STARTER: lang field - do not remove comment String lookup(String? key) {