From: Bernd Bleßmann Date: Fri, 17 Dec 2021 15:15:21 +0000 (+0100) Subject: Kosmetik: Einrückung X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~260 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=08460123f185fc145d4d87ae150b6b5f051d119a;p=kivitendo-erp.git Kosmetik: Einrückung --- diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 5c14971cb..1ac21c513 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -486,12 +486,12 @@ sub action_send_email { if ($::form->{attachment_policy} ne 'no_file' && !($::form->{attachment_policy} eq 'old_file' && $attfile)) { my $doc; - my @errors = $self->generate_pdf(\$doc, {media => $::form->{media}, - format => $::form->{print_options}->{format}, - formname => $::form->{print_options}->{formname}, - language => $self->order->language, - printer_id => $::form->{print_options}->{printer_id}, - groupitems => $::form->{print_options}->{groupitems}}); + my @errors = $self->generate_doc(\$doc, {media => $::form->{media}, + format => $::form->{print_options}->{format}, + formname => $::form->{print_options}->{formname}, + language => $self->order->language, + printer_id => $::form->{print_options}->{printer_id}, + groupitems => $::form->{print_options}->{groupitems}}); if (scalar @errors) { return $self->js->flash('error', t8('Generating the document failed: #1', $errors[0]))->render($self); }