dunning_ar_amount_interest => { type => 'integer' },
dunning_creator => { type => 'enum', check_in => [ 'current_employee', 'invoice_employee' ], db_type => 'dunning_creator', default => 'current_employee' },
duns => { type => 'text' },
+ email_attachment_part_files_checked => { type => 'boolean', default => 'true' },
+ email_attachment_record_files_checked => { type => 'boolean', default => 'true' },
+ email_attachment_vc_files_checked => { type => 'boolean', default => 'true' },
email_journal => { type => 'integer', default => 2 },
expense_accno_id => { type => 'integer' },
fa_bufa_nr => { type => 'text' },
- Verkauf-Rechnungsbericht -> Nicht per E-Mail verschickte Belege anzeigen lassen
+- Vorauswahl bei Dateianhängen für den E-Mail-Versand von Belegen konfigurierbar gemacht (Standardmäßig angehakt)
+
2019-01-03 - Release 3.5.3
Mittelgroße neue Features:
'Prepare bank collection via SEPA XML' => 'Einzug via SEPA XML vorbereiten',
'Prepare bank transfer via SEPA XML' => 'Überweisung via SEPA XML vorbereiten',
'Prepayment' => 'Vorauszahlung',
+ 'Preselect Customer/Vendor documents as email attachments' => 'Vorausgewählte Kunden-/Lieferantendokumente im E-Mail-Anhang',
+ 'Preselect all documents for the current selected parts in a record as a mail attachment.' => 'Wählt alle Artikel-Dokumente der aktuellen Artikel des Belegs beim E-Mail-Versand aus.',
+ 'Preselect all documents saved for the current customer/vendor as a mail attachment.' => 'Wählt alle Kunden/Lieferanten-Dokumente beim E-Mail-Versand eines Belegs aus.',
+ 'Preselect all documents saved for the current record as a mail attachment.' => 'Wählt alle Dateianhänge des aktuellen Belegs beim E-Mail-Versand aus.',
+ 'Preselect part documents as email attachments' => 'Vorausgewählte Artikeldokumente im E-Mail-Anhang',
+ 'Preselect record documents as email attachments' => 'Vorausgewählte Dateianhänge im E-Mail-Anhang',
'Preselected bin' => 'Vorausgewählter Lagerplatz',
'Preselected cutoff date' => 'Vorausgewählter Stichtag',
'Preselected warehouse' => 'Vorausgewähltes Lager',
--- /dev/null
+# @tag: defaults_doc_email_attachment
+# @description: Einstellen der Haken für Anhänge beim Belegversand für E-Mails (Standard alle angehakt)
+# @depends: release_3_5_3
+package SL::DBUpgrade2::defaults_doc_email_attachment;
+
+use utf8;
+
+use parent qw(SL::DBUpgrade2::Base);
+use strict;
+
+sub run {
+ my ($self) = @_;
+
+ $self->db_query(qq|ALTER TABLE defaults ADD COLUMN email_attachment_vc_files_checked boolean DEFAULT true|);
+ $self->db_query(qq|ALTER TABLE defaults ADD COLUMN email_attachment_part_files_checked boolean DEFAULT true|);
+ $self->db_query(qq|ALTER TABLE defaults ADD COLUMN email_attachment_record_files_checked boolean DEFAULT true|);
+ return 1;
+}
+
+1;
[% L.hidden_tag('defaults.doc_max_filesize',SELF.defaults.doc_max_filesize) %] MB</td>
<td>[% LxERP.t8('The maximum of uploadable filesize in Megabyte') %]</td>
</tr>
+ <tr>
+ <td align="right">[% LxERP.t8('Preselect Customer/Vendor documents as email attachments') %]</td>
+ <td>[% L.yes_no_tag('defaults.email_attachment_vc_files_checked', SELF.defaults.email_attachment_vc_files_checked) %]</td>
+ <td>[% LxERP.t8('Preselect all documents saved for the current customer/vendor as a mail attachment.') %]</td>
+ </tr>
+ <tr>
+ <td align="right">[% LxERP.t8('Preselect part documents as email attachments') %]</td>
+ <td>[% L.yes_no_tag('defaults.email_attachment_part_files_checked', SELF.defaults.email_attachment_part_files_checked) %]</td>
+ <td>[% LxERP.t8('Preselect all documents for the current selected parts in a record as a mail attachment.') %]</td>
+ </tr>
+ <tr>
+ <td align="right">[% LxERP.t8('Preselect record documents as email attachments') %]</td>
+ <td>[% L.yes_no_tag('defaults.email_attachment_record_files_checked', SELF.defaults.email_attachment_record_files_checked) %]</td>
+ <td>[% LxERP.t8('Preselect all documents saved for the current record as a mail attachment.') %]</td>
+ </tr>
<tr><td class="listheading" colspan="4">[% LxERP.t8("Storage Backends") %]</td></tr>
<tr>
<td align="right">[% LxERP.t8('Files') %]</td>
[% BLOCK attach_file_list %]
[% IF files.as_list.size %]
- [% SET have_files = 1 ;
+ [% SET have_files = 1;
FOREACH file = files.as_list %]
<tr>
<th align="right" nowrap>
[% END %]
</th>
<td>
- [% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="1") %]
+ [% IF checked %]
+ [% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="1") %]
+ [% ELSE %]
+ [% P.checkbox_tag("email_form.attach_file_ids[]", label=file.db_file.file_name, value=file.db_file.id, checked="0") %]
+ [% END %]
</td>
</tr>
[% END %]
[% IF INSTANCE_CONF.get_doc_storage %]
[% PROCESS attach_file_list
files = FILES.files
+ checked = INSTANCE_CONF.get_email_attachment_record_files_checked
label = LxERP.t8("Record's files") %]
[% PROCESS attach_file_list
files = FILES.vc_files
+ checked = INSTANCE_CONF.get_email_attachment_vc_files_checked
label = is_customer ? LxERP.t8("Files from customer") : LxERP.t8("Files from vendor") %]
[% PROCESS attach_file_list
files = FILES.part_files
+ checked = INSTANCE_CONF.get_email_attachment_part_files_checked
label = LxERP.t8("Files from parts") %]
[% END %]
</tbody>