Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 687f2d96

Von Martin Helmling vor mehr als 9 Jahren hinzugefügt

  • ID 687f2d9638182ead968d333af325c912d903b675
  • Vorgänger 56d0b88f
  • Nachfolger 977614d6

Konfigurierbares E-Mail-Journal

In der Mandantenkonfig kann nun das Speichern von gesendeten E-Mails
entweder
- ganz abgeschaltet werden
- ohne Anhänge speichern
- mit Anhängen speichern (default)
konfiguriert werden.

Falls ganz abgeschaltet, erscheint im Journal dazu ein Hinweis

Unterschiede anzeigen:

SL/Controller/EmailJournal.pm
27 27
sub action_list {
28 28
  my ($self) = @_;
29 29

  
30
  if ( $::instance_conf->get_email_journal == 0 ) {
31
      flash('info',  $::locale->text('In client config the mail saving into the journal is actual disabled.'));
32
  }
30 33
  $self->render('email_journal/list',
31 34
                title   => $::locale->text('Email journal'),
32 35
                ENTRIES => $self->models->get,
SL/DB/MetaSetup/Default.pm
46 46
  dunning_ar_amount_fee                     => { type => 'integer' },
47 47
  dunning_ar_amount_interest                => { type => 'integer' },
48 48
  duns                                      => { type => 'text' },
49
  email_journal                             => { type => 'integer', default => 2 },
49 50
  expense_accno_id                          => { type => 'integer' },
50 51
  fxgain_accno_id                           => { type => 'integer' },
51 52
  fxloss_accno_id                           => { type => 'integer' },
SL/Mailer.pm
236 236
sub _store_in_journal {
237 237
  my ($self, $status, $extended_status) = @_;
238 238

  
239
  my $journal_enable = $::instance_conf->get_email_journal;
240

  
241
  return if $journal_enable == 0;
242

  
239 243
  $status          //= $self->{driver}->status if $self->{driver};
240 244
  $status          //= 'failed';
241 245
  $extended_status //= $self->{driver}->extended_status if $self->{driver};
242 246
  $extended_status //= 'unknown error';
243 247

  
244
  my @attachments = grep { $_ } map {
248
  my @attachments;
249

  
250
  @attachments = grep { $_ } map {
245 251
    my $part = $self->_create_attachment_part($_);
246 252
    if ($part) {
247 253
      SL::DB::EmailJournalAttachment->new(
......
250 256
        content   => $part->body,
251 257
      )
252 258
    }
253
  } @{ $self->{attachments} || [] };
259
  } @{ $self->{attachments} || [] } if $journal_enable > 1;
254 260

  
255 261
  my $headers = join "\r\n", (bundle_by { join(': ', @_) } 2, @{ $self->{headers} || [] });
256 262

  
locale/de/all
1365 1365
  'Import profiles'             => 'Import-Profil',
1366 1366
  'Import result'               => 'Import-Ergebnis',
1367 1367
  'Import summary'              => 'Import-Zusammenfassung',
1368
  'In client config the mail saving into the journal is actual disabled.' => 'Das Speichern von versendeten E-Mails ist derzeit in der Mandantenkonfigurierung abgeschaltet.',
1368 1369
  'In order to do that hit the button "Delete transaction".' => 'Drücken Sie dafür auf den Button "Buchung löschen".',
1369 1370
  'In order to migrate the old folder structure into the new structure you have to chose which client the old structure will be assigned to.' => 'Um die alte Ordnerstruktur in die neue Struktur zu migrieren, müssen Sie festlegen, welchem Mandanten die bisherige Struktur zugewiesen wird.',
1370 1371
  'In order to use kivitendo you have to create at least a client, a user and a group.' => 'Um kivitendo zu nutzen, müssen Sie mindestens einen Mandanten, einen Benutzer und eine Gruppe anlegen.',
......
1679 1680
  'No Company Address given'    => 'Keine Firmenadresse hinterlegt!',
1680 1681
  'No Company Name given'       => 'Kein Firmenname hinterlegt!',
1681 1682
  'No Customer was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein Endkunde gefunden',
1683
  'No Journal'                  => 'Kein Journal',
1682 1684
  'No Vendor was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein Händler gefunden',
1683 1685
  'No acceptance statuses has been created yet.' => 'Es wurde noch kein Abnahmestatus angelegt.',
1684 1686
  'No action defined.'          => 'Keine Aktion definiert.',
......
2359 2361
  'Sellprice significant places' => 'Verkaufspreis: Nachkommastellen',
2360 2362
  'Semicolon'                   => 'Semikolon',
2361 2363
  'Sender'                      => 'AbsenderIn',
2364
  'Sent emails can be stored with or without attachments in database or general not stored' => 'gesendete E-Mails können mit oder ohne Anhänge in der Datenbank gespeichert werden',
2362 2365
  'Sent on'                     => 'Verschickt am',
2363 2366
  'Sep'                         => 'Sep',
2364 2367
  'Separator'                   => 'Trennzeichen',
......
3178 3181
  'What type of item is this?'  => 'Was ist dieser Artikel?',
3179 3182
  'When converting a requirement spec into a quotation or an oder each section gets converted into a line position in the new record. This is the article used by default for this conversion.' => 'Wenn ein Pflichtenheft in ein Angebot oder Auftrag umgewandelt wird, wird für jeden Abschnitt eine Position im neuen Beleg angelegt. Dies ist der Artikel, der standardmäßig bei dieser Umwandlung genutzt wird.',
3180 3183
  'Which is located at doc/kivitendo-Dokumentation.pdf. Click here: ' => 'Diese befindet sich unter doc/kivitendo-Dokumentation.pdf. Klicken Sie hier:',
3184
  'With Attachments'            => 'Journal mit Anhängen',
3181 3185
  'With Extension Of Time'      => 'mit Dauerfristverlängerung',
3182 3186
  'With the introduction of clients each client gets its own WebDAV folder.' => 'Mit der Einführung von Mandanten erhält jeder Mandant sein eigenes WebDAV-Verzeichnis.',
3187
  'Without Attachments'         => 'Journal ohne Anhänge',
3183 3188
  'Workflow Delivery Order'     => 'Workflow Lieferschein',
3184 3189
  'Workflow purchase_order'     => 'Workflow Lieferantenauftrag',
3185 3190
  'Workflow request_quotation'  => 'Workflow Preisanfrage',
sql/Pg-upgrade2/defaults_enable_email_journal.sql
1
-- @tag: defaults_enable_email_journal
2
-- @description: Email Journal konfigurierbar machen 
3
-- @depends: email_journal 
4

  
5
ALTER TABLE defaults ADD COLUMN  email_journal integer DEFAULT 2;
templates/webpages/client_config/_features.html
111 111
   <td>[% 'Manually sent E-Mails will have their BCC field appended with this address. Will not trigger for employees without the right to send bcc, and will not apply to mails sent by automated jobs.' | $T8 %]</td>
112 112
  </tr>
113 113

  
114
  <tr>
115
   <td align="right">[% LxERP.t8('Email journal') %]</td>
116
   <td>
117
     [% L.select_tag('defaults.email_journal', [ [ 0, LxERP.t8('No Journal') ],[ 1, LxERP.t8('Without Attachments') ],[ 2, LxERP.t8('With Attachments') ]  ], default=SELF.defaults.email_journal) %]
118
   </td>
119
   <td>[% 'Sent emails can be stored with or without attachments in database or general not stored' | $T8 %]</td>
120
  </tr>
121

  
114 122
  <tr><td class="listheading" colspan="4">[% LxERP.t8("Requirement Specs") %]</td></tr>
115 123

  
116 124
  <tr>

Auch abrufbar als: Unified diff