Wenn man einmal mit einer Steuer gebucht hat, kann man diese nun nicht
mehr an der Oberfläche ändern.
Implementiert #2217.
$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
<table width="100%">
<tr>
<td>[% 'tax_taxkey' | $T8 %]</td>
- <td><input name="taxkey" size="2" value="[% HTML.escape(taxkey) %]" [% readonly %]></td>
+ <td>[% IF tax_already_used %]<p>[% HTML.escape(taxkey) %]</p>
+ <input type="hidden" name="taxkey" size="2" value="[% HTML.escape(taxkey) %]">
+ [% ELSE %]<input name="taxkey" size="2" value="[% HTML.escape(taxkey) %]">
+ [% END %]</td>
</tr>
<tr>
<tr>
<td>[% 'tax_percent' | $T8 %]</td>
- <td><input name="rate" size="10" value="[% HTML.escape(rate) %]" [% readonly %]> %</td>
+ <td>[% IF tax_already_used %]<p>[% HTML.escape(rate) %] %</p>
+ <input type="hidden" name="rate" size="10" value="[% HTML.escape(rate) %]">
+ [% ELSE %]<input name="rate" size="10" value="[% HTML.escape(rate) %]"> %
+ [% END %]</td>
</tr>
<tr>