From: Bernd Bleßmann Date: Tue, 16 Mar 2021 15:29:11 +0000 (+0100) Subject: Mahnung per Mail: auch Rechnung über Mahngebühren anhängen X-Git-Tag: kivitendo-mebil_0.1-0~9^2~433 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2651b9cb8cb0aaad5235c934bf56110d59196fef;p=kivitendo-erp.git Mahnung per Mail: auch Rechnung über Mahngebühren anhängen Der Mailer erwartet den Pfad für das Attachment mit dem key "path", nicht "filename". Zudem übersetzten Anhang-Namen verwenden. --- diff --git a/SL/DN.pm b/SL/DN.pm index 460d2311c..deeff6376 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -1102,7 +1102,8 @@ sub print_invoice_for_fees { map { delete $form->{$_} } grep /^[a-z_]+_\d+$/, keys %{ $form }; - $form->{attachment_filename} = $form->get_formname_translation('dunning_invoice') . "_${dunning_id}.pdf"; + my $attachment_filename = $form->get_formname_translation('dunning_invoice') . "_${dunning_id}.pdf"; + $form->{attachment_filename} = $attachment_filename; $form->{attachment_type} = "dunning"; $form->{attachment_id} = $form->{invoice_id}; $form->parse_template($myconfig); @@ -1110,8 +1111,8 @@ sub print_invoice_for_fees { restore_form($saved_form); push @{ $form->{DUNNING_PDFS} }, $filename; - push @{ $form->{DUNNING_PDFS_EMAIL} }, { 'filename' => "${spool}/$filename", - 'name' => "dunning_invoice_${dunning_id}.pdf" }; + push @{ $form->{DUNNING_PDFS_EMAIL} }, { 'path' => "${spool}/$filename", + 'name' => $attachment_filename }; $main::lxdebug->leave_sub(); }