From 38bb9635fde8c2821c23da931bcb6acba8e4b8be Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 19 Mar 2021 14:23:02 +0100 Subject: [PATCH] =?utf8?q?S:P:Dunning:=20Link=20f=C3=BChrt=20nicht=20mehr?= =?utf8?q?=20zum=20Drucken,=20sondern=20zum=20Mahnungsbericht,=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit … gefiltert für diese Mahnung. Hier kann man die Details sehen und auch drucken. --- SL/Presenter/Dunning.pm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/SL/Presenter/Dunning.pm b/SL/Presenter/Dunning.pm index a40239fa0..bbf722d1c 100644 --- a/SL/Presenter/Dunning.pm +++ b/SL/Presenter/Dunning.pm @@ -17,12 +17,10 @@ sub dunning { croak "Unknown display type '$params{display}'" unless $params{display} =~ m/^(?:inline|table-cell)$/; - my $invoice = SL::DB::Manager::Invoice->find_by( id => $dunning->trans_id ); - - my $text = escape($dunning->dunning_config->dunning_description); + my $text = escape($dunning->dunning_config->dunning_description); if (! delete $params{no_link}) { - my $href = 'dn.pl?action=print_dunning&format=pdf&media=screen&dunning_id=' . $dunning->dunning_id . '&language_id=' . $invoice->language_id; + my $href = 'dn.pl?action=show_dunning&showold=1&dunning_id=' . $dunning->dunning_id; $text = link_tag($href, $text, %params); } -- 2.20.1