From 2766521474b20c77e62d169a1c99efb41cb1c56f Mon Sep 17 00:00:00 2001 From: Niclas Zimmermann Date: Mon, 6 Jan 2014 17:31:37 +0100 Subject: [PATCH] =?utf8?q?Kein=20Automatikkonto=20ausw=C3=A4hlen=20wieder?= =?utf8?q?=20m=C3=B6glich?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixt #2250. --- SL/AM.pm | 4 ++-- templates/webpages/am/edit_tax.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SL/AM.pm b/SL/AM.pm index 3fdf175cd..8b2d7b292 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -1643,7 +1643,7 @@ sub save_tax { $chart_categories .= 'E' if $form->{expense}; $chart_categories .= 'C' if $form->{costs}; - my @values = ($form->{taxkey}, $form->{taxdescription}, $form->{rate}, $form->{chart_id}, $form->{chart_id}, $chart_categories); + my @values = ($form->{taxkey}, $form->{taxdescription}, $form->{rate}, conv_i($form->{chart_id}), conv_i($form->{chart_id}), $chart_categories); if ($form->{id} ne "") { $query = qq|UPDATE tax SET taxkey = ?, @@ -1670,7 +1670,7 @@ sub save_tax { } push(@values, $form->{id}); do_query($form, $dbh, $query, @values); - + foreach my $language_id (keys %{ $form->{translations} }) { GenericTranslations->save('dbh' => $dbh, 'translation_type' => 'SL::DB::Tax/taxdescription', diff --git a/templates/webpages/am/edit_tax.html b/templates/webpages/am/edit_tax.html index 83a10c428..cb86eb2aa 100644 --- a/templates/webpages/am/edit_tax.html +++ b/templates/webpages/am/edit_tax.html @@ -41,7 +41,7 @@ [% 'tax_chartaccno' | $T8 %] - + [% 'Account categories' | $T8 %] -- 2.20.1