]> wagnertech.de Git - kivitendo-erp.git/commitdiff
BCC an aktuellen Benutzer
authorMartin Helmling <martin.helmling@octosoft.eu>
Tue, 17 Jan 2017 15:55:06 +0000 (16:55 +0100)
committerMartin Helmling martin.helmling@octosoft.eu <martin.helmling@octosoft.eu>
Wed, 1 Feb 2017 07:52:41 +0000 (08:52 +0100)
Falls in der Mandantenkonfiguration diese Option eingeschaltet wird,
bekommt de raktuelle Benutzer zu jeder versendeten Email eine blinde Kopie

SL/DB/MetaSetup/Default.pm
SL/Form.pm
locale/de/all
sql/Pg-upgrade2/defaults_bcc_to_login.sql [new file with mode: 0644]
templates/webpages/client_config/_features.html

index 9d6114a668e58ca3a798d72b4b6b4c354643ec02..c3016be7110b433f6069c6d0955860a2416f32f1 100644 (file)
@@ -26,6 +26,7 @@ __PACKAGE__->meta->columns(
   assemblynumber                            => { type => 'text' },
   assortmentnumber                          => { type => 'text' },
   balance_startdate_method                  => { type => 'text' },
   assemblynumber                            => { type => 'text' },
   assortmentnumber                          => { type => 'text' },
   balance_startdate_method                  => { type => 'text' },
+  bcc_to_login                              => { type => 'boolean' },
   bin_id                                    => { type => 'integer' },
   bin_id_ignore_onhand                      => { type => 'integer' },
   businessnumber                            => { type => 'text' },
   bin_id                                    => { type => 'integer' },
   bin_id_ignore_onhand                      => { type => 'integer' },
   businessnumber                            => { type => 'text' },
index 3969cbfef301a42e20fe23c066d8f86166e1982e..644b9dbead7a36222070f265990105ef14216533 100644 (file)
@@ -1127,10 +1127,10 @@ sub parse_template {
 
 sub get_bcc_defaults {
   my ($self, $myconfig, $mybcc) = @_;
 
 sub get_bcc_defaults {
   my ($self, $myconfig, $mybcc) = @_;
-#  if (SL::DB::Default->get->bcc_to_login) {
-#    $mybcc .= ", " if $mybcc;
-#    $mybcc .= $myconfig->{email};
-#  }
+  if (SL::DB::Default->get->bcc_to_login) {
+    $mybcc .= ", " if $mybcc;
+    $mybcc .= $myconfig->{email};
+  }
   my $otherbcc = SL::DB::Default->get->global_bcc;
   if ($otherbcc) {
     $mybcc .= ", " if $mybcc;
   my $otherbcc = SL::DB::Default->get->global_bcc;
   if ($otherbcc) {
     $mybcc .= ", " if $mybcc;
index cfc16351feb8146e3c264b34f93a0017901f1769..621e64cb800d931377eee93b427293a5c4209a6e 100644 (file)
@@ -2570,6 +2570,7 @@ $self->{texts} = {
   'Sellprice for price group \'#1\'' => 'Verkaufspreis für Preisgruppe \'#1\'',
   'Sellprice significant places' => 'Verkaufspreis: Nachkommastellen',
   'Semicolon'                   => 'Semikolon',
   'Sellprice for price group \'#1\'' => 'Verkaufspreis für Preisgruppe \'#1\'',
   'Sellprice significant places' => 'Verkaufspreis: Nachkommastellen',
   'Semicolon'                   => 'Semikolon',
+  'Send a blind copy of all outgoing emails to current user\'s email address?' => 'Eine blinde Kopie aller ausgehenden E-Mails wird an den angemeldeten Nutzer geschickt',
   'Send invoice via email'      => 'Rechnung via E-Mail verschicken',
   'Send letter via e-mail'      => 'Brief via E-Mail verschicken',
   'Sender'                      => 'AbsenderIn',
   'Send invoice via email'      => 'Rechnung via E-Mail verschicken',
   'Send letter via e-mail'      => 'Brief via E-Mail verschicken',
   'Sender'                      => 'AbsenderIn',
diff --git a/sql/Pg-upgrade2/defaults_bcc_to_login.sql b/sql/Pg-upgrade2/defaults_bcc_to_login.sql
new file mode 100644 (file)
index 0000000..6321fc0
--- /dev/null
@@ -0,0 +1,6 @@
+-- @tag: defaults_bcc_to_login
+-- @description: BCC Email zu aktuellem Benutzer
+-- @depends: defaults_global_bcc
+
+ALTER TABLE defaults ADD bcc_to_login boolean NOT NULL DEFAULT FALSE;
+
index 8e128f34e0073720d199d694224e5bbf71408089..b38b66e90e6417c08a263713c423681281ffa128 100644 (file)
    <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>
   </tr>
 
    <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>
   </tr>
 
+  <tr>
+   <td align="right">[% LxERP.t8('Send a BCC to logged in user?') %]</td>
+   <td>
+     [% L.yes_no_tag('defaults.bcc_to_login', SELF.defaults.bcc_to_login) %]
+   </td>
+   <td>
+     [% LxERP.t8('Send a blind copy of all outgoing emails to current user\'s email address?') %]
+   </td>
+ </tr>
+
   <tr>
    <td align="right">[% LxERP.t8('Email journal') %]</td>
    <td>
   <tr>
    <td align="right">[% LxERP.t8('Email journal') %]</td>
    <td>