From 036d1ca4bd5e9574118a7041e58b64fda4bc003d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Fri, 24 Mar 2017 14:47:45 +0100 Subject: [PATCH] =?utf8?q?ActionBar:=20Verwendung=20bei=20=C2=BBSystem?= =?utf8?q?=C2=AB=20=E2=86=92=20=C2=BBKorrekturen=20im=20Hauptbuch=C2=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- bin/mozilla/acctranscorrections.pl | 32 +++++++++++++++++++ locale/de/all | 2 +- .../acctranscorrections/analyze_filter.html | 6 +--- 3 files changed, 34 insertions(+), 6 deletions(-) diff --git a/bin/mozilla/acctranscorrections.pl b/bin/mozilla/acctranscorrections.pl index 6ee397f41..c0e325e4f 100644 --- a/bin/mozilla/acctranscorrections.pl +++ b/bin/mozilla/acctranscorrections.pl @@ -1,5 +1,6 @@ use SL::AccTransCorrections; use SL::Form; +use SL::Locale::String qw(t8); use SL::User; use Data::Dumper; use YAML; @@ -14,6 +15,8 @@ sub analyze_filter { my $form = $main::form; my $locale = $main::locale; + setup_analyze_filter_action_bar(); + $form->{title} = $locale->text('General ledger corrections'); $form->header(); print $form->parse_html_template('acctranscorrections/analyze_filter'); @@ -47,6 +50,8 @@ sub analyze { return; } + setup_analyze_action_bar(); + $form->header(); print $form->parse_html_template('acctranscorrections/analyze_overview', { 'PROBLEMS' => \@problems, @@ -251,4 +256,31 @@ sub dispatcher { $form->error($locale->text('No action defined.')); } +sub setup_analyze_filter_action_bar { + my %params = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Analyze'), + submit => [ '#form' ], + accesskey => 'enter', + ], + ); + } +} + +sub setup_analyze_action_bar { + my %params = @_; + + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Back'), + call => [ 'kivi.history_back' ], + ], + ); + } +} + 1; diff --git a/locale/de/all b/locale/de/all index 1d4c9a9ef..a0b2178ca 100755 --- a/locale/de/all +++ b/locale/de/all @@ -281,6 +281,7 @@ $self->{texts} = { 'An invalid character was used (invalid characters: #1).' => 'Ein ungültiges Zeichen wurde benutzt (ungültige Zeichen: #1).', 'An invalid character was used (valid characters: #1).' => 'Ein ungültiges Zeichen wurde benutzt (gültige Zeichen: #1).', 'An upper-case character is required.' => 'Ein Großbuchstabe ist vorgeschrieben.', + 'Analyze' => 'Analysieren', 'Annotations' => 'Anmerkungen', 'Any stock contents containing a best before date will be impossible to stock out otherwise.' => 'Sonst können Artikel, bei denen ein Mindesthaltbarkeitsdatum gesetzt ist, nicht mehr ausgelagert werden.', 'Ap aging on %s' => 'Offene Verbindlichkeiten an %s', @@ -2723,7 +2724,6 @@ $self->{texts} = { 'Split entry detected. The values you have entered will result in an entry with more than one position on both debit and credit. Due to known problems involving accounting software kivitendo does not allow these.' => 'Splitbuchung! Die eingebenen Werte würden eine Buchung auslösen, die jeweils mehr als eine Position auf Soll und Haben hätte. Um Kompatibilität mit DATEV zu gewährleisten erlaubt kivitendo keine Splitbuchungen.', 'Spoolfile' => 'Druckdatei', 'Start Dunning Process' => 'Mahnprozess starten', - 'Start analysis' => 'Analyse beginnen', 'Start date' => 'Startdatum', 'Start of year' => 'Jahresanfang', 'Start process' => 'Prozess starten', diff --git a/templates/webpages/acctranscorrections/analyze_filter.html b/templates/webpages/acctranscorrections/analyze_filter.html index 91a193bcb..11c613658 100644 --- a/templates/webpages/acctranscorrections/analyze_filter.html +++ b/templates/webpages/acctranscorrections/analyze_filter.html @@ -9,7 +9,7 @@ [% 'This module can help you identify and correct such entries by analyzing the general ledger and presenting you likely solutions but also allowing you to fix problems yourself.' | $T8 %]

-
+

[% 'Time period for the analysis:' | $T8 %]

@@ -33,9 +33,5 @@

-

- -

-
-- 2.20.1