From da5ffc942f6ba7c10370eb68ff8454194b7d0566 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Tue, 16 Mar 2021 16:32:44 +0100 Subject: [PATCH] =?utf8?q?Mahnungen:=20PDF=20d.=20Rechnung=20=C3=BCber=20M?= =?utf8?q?ahngeb=C3=BChren=20im=20DMS=20speichern?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Die Id der zugehörigen Rechnung ist in $invoice_id, nicht in $form->{invoice_id}. --- SL/DN.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/DN.pm b/SL/DN.pm index deeff6376..3ae10a428 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -1105,7 +1105,7 @@ sub print_invoice_for_fees { my $attachment_filename = $form->get_formname_translation('dunning_invoice') . "_${dunning_id}.pdf"; $form->{attachment_filename} = $attachment_filename; $form->{attachment_type} = "dunning"; - $form->{attachment_id} = $form->{invoice_id}; + $form->{attachment_id} = $invoice_id; $form->parse_template($myconfig); restore_form($saved_form); -- 2.20.1