Revision 540030ff
Von Bernd Blessmann vor fast 13 Jahren hinzugefügt
bin/mozilla/am.pl | ||
---|---|---|
328 | 328 |
} |
329 | 329 |
|
330 | 330 |
# preselection chart type |
331 |
my $select_charttype = q{}; |
|
332 |
|
|
333 |
my %charttype = ( |
|
334 |
'A' => $locale->text('Account'), |
|
335 |
'H' => $locale->text('Heading'), |
|
336 |
); |
|
337 |
|
|
338 |
foreach my $item ( sort({ $a <=> $b } keys %charttype) ) { |
|
339 |
if ($item eq $form->{charttype}) { |
|
340 |
$select_charttype .= qq|<option value="$item" selected="selected">$charttype{$item}\n|; |
|
341 |
|
|
342 |
} else { |
|
343 |
$select_charttype .= qq|<option value="$item">$charttype{$item}\n|; |
|
344 |
} |
|
331 |
my @all_charttypes = ({'name' => $locale->text('Account'), 'value' => 'A'}, |
|
332 |
{'name' => $locale->text('Heading'), 'value' => 'H'}, |
|
333 |
); |
|
334 |
my $selected_charttype = $form->{charttype}; |
|
345 | 335 |
|
346 |
} |
|
347 | 336 |
|
348 | 337 |
# account where AR_tax or AP_tax is set are not orphaned if they are used as |
349 | 338 |
# tax-o-matic account |
... | ... | |
362 | 351 |
ChartTypeIsAccount => $ChartTypeIsAccount, |
363 | 352 |
AccountIsPosted => $AccountIsPosted, |
364 | 353 |
select_category => $select_category, |
365 |
select_charttype => $select_charttype, |
|
354 |
all_charttypes => \@all_charttypes, |
|
355 |
selected_charttype => $selected_charttype, |
|
366 | 356 |
select_bwa => $select_bwa, |
367 | 357 |
select_bilanz => $select_bilanz, |
368 | 358 |
select_eur => $select_eur, |
doc/changelog | ||
---|---|---|
86 | 86 |
- Bugfix 1760 - 1760: Bei einem Lieferschein wird die Abteilung nicht mitgespeichert |
87 | 87 |
- Bugfix 1752: Rechnung -> Druckvorschau ignoriert Änderung des Steuersatz beim Beleg |
88 | 88 |
- Bugfix 1708: Fehlender Übertrag der Lieferadresse von Angebot -> Auftragsbestätigung |
89 |
- Bugfix 1648: bebuchte Konten sollten nicht in Überschriften umgewandelt werden können |
|
89 | 90 |
|
90 | 91 |
|
91 | 92 |
2011-06-15 - Release 2.6.3 |
templates/webpages/am/edit_accounts.html | ||
---|---|---|
60 | 60 |
|
61 | 61 |
</label> |
62 | 62 |
</td> |
63 |
<td><select name="charttype">[% select_charttype %]</select></td> |
|
63 |
<td> |
|
64 |
[% IF AccountIsPosted %] |
|
65 |
[% L.select_tag('dummy_charttype', |
|
66 |
L.options_for_select(all_charttypes, |
|
67 |
title => 'name', value => 'value', |
|
68 |
default => selected_charttype), |
|
69 |
disabled => '1') %] |
|
70 |
[% L.hidden_tag('charttype', selected_charttype) %] |
|
71 |
[% ELSE %] |
|
72 |
[% L.select_tag('charttype', |
|
73 |
L.options_for_select(all_charttypes, |
|
74 |
title => 'name', value => 'value', |
|
75 |
default => selected_charttype)) %] |
|
76 |
[% END %] |
|
77 |
</td> |
|
64 | 78 |
</tr> |
65 | 79 |
</table> |
66 | 80 |
</fieldset> |
81 |
|
|
67 | 82 |
<fieldset class="DEPENDS ON charttype BEING A"> |
68 | 83 |
<legend>[% 'Account Type' | $T8 %]</legend> |
69 | 84 |
<select name="category" id="AccountType" class="DEPENDS ON charttype BEING A"> |
Auch abrufbar als: Unified diff
Bugfix für 1648 - bebuchte Konten sollten nicht in Überschriften umgewandelt werden können
wird jetzt auf der Oberfläche verhindert.