SL::DN: print_original_invoices in print_original_invoice umbenannt, …
authorBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 17 Mar 2021 15:03:54 +0000 (16:03 +0100)
committerBernd Bleßmann <bernd@kivitendo-premium.de>
Wed, 17 Mar 2021 16:09:37 +0000 (17:09 +0100)
… da nur eine Rechnung gedruckt wird.

SL/DN.pm

index 646b9e0..ed196c0 100644 (file)
--- 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;