From 2a1e7ba222323c441f55da0c192413a471c0b4cb Mon Sep 17 00:00:00 2001 From: "Martin Helmling martin.helmling@octosoft.eu" Date: Mon, 12 Dec 2016 14:38:37 +0100 Subject: [PATCH] BUGFIX: Benachrichtigung automatisch erstellter Rechnungen fehlerhaft Dieses Problem wird im Redmine Ticket #218 angesprochen. Durch Verwendung einer lokalen Variable behoben --- SL/BackgroundJob/CreatePeriodicInvoices.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/BackgroundJob/CreatePeriodicInvoices.pm b/SL/BackgroundJob/CreatePeriodicInvoices.pm index 22f9bf985..490f21ea3 100644 --- a/SL/BackgroundJob/CreatePeriodicInvoices.pm +++ b/SL/BackgroundJob/CreatePeriodicInvoices.pm @@ -65,8 +65,8 @@ sub run { } } - $self->_print_invoice($_) for @invoices_to_print; - $self->_email_invoice($_) for @invoices_to_email; + foreach my $inv ( @invoices_to_print ) { $self->_print_invoice($inv); } + foreach my $inv ( @invoices_to_email ) { $self->_email_invoice($inv); } $self->_send_summary_email( [ map { $_->{invoice} } @new_invoices ], -- 2.20.1