Support scheduling reports

This commit is contained in:
Hillel Coren 2024-01-18 18:41:18 +02:00
parent 74aada7484
commit fe54fc132f
2 changed files with 7 additions and 0 deletions

View File

@ -80,10 +80,12 @@ abstract class ScheduleEntity extends Object
static const TEMPLATE_EMAIL_STATEMENT = 'email_statement'; static const TEMPLATE_EMAIL_STATEMENT = 'email_statement';
static const TEMPLATE_EMAIL_RECORD = 'email_record'; static const TEMPLATE_EMAIL_RECORD = 'email_record';
static const TEMPLATE_EMAIL_REPORT = 'email_report';
static const TEMPLATES = [ static const TEMPLATES = [
TEMPLATE_EMAIL_STATEMENT, TEMPLATE_EMAIL_STATEMENT,
TEMPLATE_EMAIL_RECORD, TEMPLATE_EMAIL_RECORD,
TEMPLATE_EMAIL_REPORT,
]; ];
@override @override

View File

@ -18,6 +18,7 @@ mixin LocalizationsProvider on LocaleCodeAware {
static final Map<String, Map<String, String>> _localizedValues = { static final Map<String, Map<String, String>> _localizedValues = {
'en': { 'en': {
// STARTER: lang key - do not remove comment // STARTER: lang key - do not remove comment
'email_report': 'Email Report',
'host': 'Host', 'host': 'Host',
'port': 'Port', 'port': 'Port',
'encryption': 'Encryption', 'encryption': 'Encryption',
@ -114262,6 +114263,10 @@ mixin LocalizationsProvider on LocaleCodeAware {
_localizedValues[localeCode]!['username'] ?? _localizedValues[localeCode]!['username'] ??
_localizedValues['en']!['username']!; _localizedValues['en']!['username']!;
String get emailReport =>
_localizedValues[localeCode]!['email_report'] ??
_localizedValues['en']!['email_report']!;
// STARTER: lang field - do not remove comment // STARTER: lang field - do not remove comment
String lookup(String? key) { String lookup(String? key) {