From: Martin Helmling martin.helmling@octosoft.eu Date: Mon, 12 Dec 2016 13:38:37 +0000 (+0100) Subject: BUGFIX: Benachrichtigung automatisch erstellter Rechnungen fehlerhaft X-Git-Tag: release-3.5.4~1811 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2a1e7ba222323c441f55da0c192413a471c0b4cb;p=kivitendo-erp.git BUGFIX: Benachrichtigung automatisch erstellter Rechnungen fehlerhaft Dieses Problem wird im Redmine Ticket #218 angesprochen. Durch Verwendung einer lokalen Variable behoben --- 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 ],