From 52b04172a511edae60ec9b5ada327f3cdcd150e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 11 Aug 2020 09:21:47 +0200 Subject: [PATCH] =?utf8?q?Logik-Kosmetik:=20Die=20Variablen=20werden=20lok?= =?utf8?q?al=20f=C3=BCr=20der=20Schleife=20ben=C3=B6tigt?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Aufruf von weiteren Funktionen nach der initialiserung erschwert die Lesbarkeit --- bin/mozilla/ap.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/mozilla/ap.pl b/bin/mozilla/ap.pl index 470af2542..31ac25d09 100644 --- a/bin/mozilla/ap.pl +++ b/bin/mozilla/ap.pl @@ -460,9 +460,6 @@ sub form_header { my $follow_up_trans_info = "$form->{invnumber} ($follow_up_vc)"; $::request->layout->add_javascripts("autocomplete_chart.js", "show_vc_details.js", "show_history.js", "follow_up.js", "kivi.Draft.js", "kivi.GL.js", "kivi.RecordTemplate.js", "kivi.File.js", "kivi.AP.js", "kivi.CustomerVendor.js", "kivi.Validator.js"); - my $transdate = $::form->{transdate} ? DateTime->from_kivitendo($::form->{transdate}) : DateTime->today_local; - my $first_taxchart; - # $form->{totalpaid} is used by the action bar setup to determine # whether or not canceling is allowed. Therefore it must be # calculated prior to the action bar setup. @@ -472,6 +469,9 @@ sub form_header { $form->header(); + my $transdate = $::form->{transdate} ? DateTime->from_kivitendo($::form->{transdate}) : DateTime->today_local; + my $first_taxchart; + for my $i (1 .. $form->{rowcount}) { # format amounts -- 2.20.1