From 25b2b861273d65704ffdf26cd981f9d19ca56bb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Wed, 17 Mar 2021 16:03:54 +0100 Subject: [PATCH] =?utf8?q?SL::DN:=20print=5Foriginal=5Finvoices=20in=20pri?= =?utf8?q?nt=5Foriginal=5Finvoice=20umbenannt,=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … da nur eine Rechnung gedruckt wird. --- SL/DN.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/DN.pm b/SL/DN.pm index 646b9e0c7..ed196c08b 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -416,7 +416,7 @@ sub _save_dunning { $self->print_dunning($myconfig, $form, $dunning_id, $dbh); if ($print_invoice) { - $self->print_original_invoices($myconfig, $form, $_) for @invoice_ids; + $self->print_original_invoice($myconfig, $form, $_) for @invoice_ids; } if ($send_email) { @@ -1202,7 +1202,7 @@ sub set_customer_cvars { } -sub print_original_invoices { +sub print_original_invoice { my ($self, $myconfig, $form, $invoice_id) = @_; # get one invoice as object and print to pdf my $invoice = SL::DB::Invoice->new(id => $invoice_id)->load; -- 2.20.1