Revision 27665214
Von Niclas Zimmermann vor fast 11 Jahren hinzugefügt
SL/AM.pm | ||
---|---|---|
1643 | 1643 |
$chart_categories .= 'E' if $form->{expense}; |
1644 | 1644 |
$chart_categories .= 'C' if $form->{costs}; |
1645 | 1645 |
|
1646 |
my @values = ($form->{taxkey}, $form->{taxdescription}, $form->{rate}, $form->{chart_id}, $form->{chart_id}, $chart_categories);
|
|
1646 |
my @values = ($form->{taxkey}, $form->{taxdescription}, $form->{rate}, conv_i($form->{chart_id}), conv_i($form->{chart_id}), $chart_categories);
|
|
1647 | 1647 |
if ($form->{id} ne "") { |
1648 | 1648 |
$query = qq|UPDATE tax SET |
1649 | 1649 |
taxkey = ?, |
... | ... | |
1670 | 1670 |
} |
1671 | 1671 |
push(@values, $form->{id}); |
1672 | 1672 |
do_query($form, $dbh, $query, @values); |
1673 |
|
|
1673 |
|
|
1674 | 1674 |
foreach my $language_id (keys %{ $form->{translations} }) { |
1675 | 1675 |
GenericTranslations->save('dbh' => $dbh, |
1676 | 1676 |
'translation_type' => 'SL::DB::Tax/taxdescription', |
templates/webpages/am/edit_tax.html | ||
---|---|---|
41 | 41 |
|
42 | 42 |
<tr> |
43 | 43 |
<td>[% 'tax_chartaccno' | $T8 %]</td> |
44 |
<td><select name="chart_id"><option value="0">[% 'None' | $T8 %]</option>[% FOREACH row = ACCOUNTS %]<option value="[% HTML.escape(row.id) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.taxaccount) %]</option>[% END %]</select></td>
|
|
44 |
<td><select name="chart_id"><option value="">[% 'None' | $T8 %]</option>[% FOREACH row = ACCOUNTS %]<option value="[% HTML.escape(row.id) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.taxaccount) %]</option>[% END %]</select></td> |
|
45 | 45 |
</tr> |
46 | 46 |
|
47 | 47 |
<td>[% 'Account categories' | $T8 %]</td> |
Auch abrufbar als: Unified diff
Kein Automatikkonto auswählen wieder möglich
Fixt #2250.