From: Niclas Zimmermann Date: Fri, 15 Mar 2013 09:26:34 +0000 (+0100) Subject: Bebuchte Steuern nicht verändern X-Git-Tag: release-3.1.0beta1~509^2~1 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=94ee5a7f5deddb1bf33855681c7a88dacaae2a11;p=kivitendo-erp.git Bebuchte Steuern nicht verändern Wenn man einmal mit einer Steuer gebucht hat, kann man diese nun nicht mehr an der Oberfläche ändern. Implementiert #2217. --- 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 @@ - +
[% 'tax_taxkey' | $T8 %][% IF tax_already_used %]

[% HTML.escape(taxkey) %]

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

[% HTML.escape(rate) %] %

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