From d1bffbc141ae931caf359090c6b7ec56a4feccd1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Tue, 9 Feb 2021 16:16:13 +0100 Subject: [PATCH] S:C:Letter: toten Code entfernt --- SL/Controller/Letter.pm | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/SL/Controller/Letter.pm b/SL/Controller/Letter.pm index a0aab5103..32e376810 100644 --- a/SL/Controller/Letter.pm +++ b/SL/Controller/Letter.pm @@ -184,8 +184,7 @@ sub action_list { sub action_print_letter { my ($self, %params) = @_; - my $display_form = $::form->{display_form} || "display_form"; - my $letter = $self->_update; + my $letter = $self->_update; my ($template_file, @template_files) = SL::Helper::CreatePDF->find_template( name => 'letter', @@ -512,21 +511,6 @@ sub set_greetings { $letter->greeting(t8('Dear Sir or Madam,')); } -sub export_letter_to_form { - my ($self, $letter) = @_; - # nope, not pretty. - - $letter ||= $self->letter; - - for ($letter->meta->columns) { - if ((ref $_) =~ /Date/i) { - $::form->{$_->name} = $letter->$_->to_kivitendo; - } else { - $::form->{$_->name} = $letter->$_; - } - } -} - sub init_letter { my ($self) = @_; -- 2.20.1