From 94ee5a7f5deddb1bf33855681c7a88dacaae2a11 Mon Sep 17 00:00:00 2001 From: Niclas Zimmermann Date: Fri, 15 Mar 2013 10:26:34 +0100 Subject: [PATCH] =?utf8?q?Bebuchte=20Steuern=20nicht=20ver=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Wenn man einmal mit einer Steuer gebucht hat, kann man diese nun nicht mehr an der Oberfläche ändern. Implementiert #2217. --- bin/mozilla/am.pl | 4 ---- templates/webpages/am/edit_tax.html | 10 ++++++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/bin/mozilla/am.pl b/bin/mozilla/am.pl index bcb39d258..68f8e162b 100644 --- a/bin/mozilla/am.pl +++ b/bin/mozilla/am.pl @@ -1491,11 +1491,7 @@ sub edit_tax { $form->header(); - #set readonly if the there are entries in acc_trans with the tax - my $readonly = $form->{tax_already_used} ? 'readonly' : ''; - my $parameters_ref = { - readonly => $readonly, }; # Ausgabe des Templates diff --git a/templates/webpages/am/edit_tax.html b/templates/webpages/am/edit_tax.html index e153d2f83..69ac744ff 100644 --- a/templates/webpages/am/edit_tax.html +++ b/templates/webpages/am/edit_tax.html @@ -9,7 +9,10 @@ - + @@ -19,7 +22,10 @@ - + -- 2.20.1
[% 'tax_taxkey' | $T8 %][% IF tax_already_used %]

[% HTML.escape(taxkey) %]

+ + [% ELSE %] + [% END %]
[% 'tax_percent' | $T8 %] %[% IF tax_already_used %]

[% HTML.escape(rate) %] %

+ + [% ELSE %] % + [% END %]