my %data = (
exporttype => $::form->{exporttype} ? DATEV_ET_STAMM : DATEV_ET_BUCHUNGEN,
- format => $::form->{kne} ? DATEV_FORMAT_KNE : $::form->{csv} ? DATEV_FORMAT_CSV : die "unknown format",
+ format => $::form->{exportformat} eq 'kne' ? DATEV_FORMAT_KNE : DATEV_FORMAT_CSV,
);
if ($::form->{exporttype} == DATEV_ET_STAMM) {
<td><input name=datentraegernr size=5 maxlength=3 value="[% datentraegernr %]"></td>
</tr>
<tr>
- <td><input type="hidden" name="kne" value="1"></td>
+ <td></td>
<td></td>
<td align=left nowrap>[% 'Abrechnungsnummer' | $T8 %]</td>
<td><input name=exporttype type=radio class=radio value=1> [% 'Export Stammdaten' | $T8 %]</td>
<td></td>
- </td>
+ </tr>
+ <tr>
+ <td><input name=exportformat type=radio class=radio value=csv checked> [% 'CSV' | $T8 %]</td>
+ <td></td>
+
+ <td><input name=exportformat type=radio class=radio value=kne> [% 'KNE' | $T8 %]</td>
+ <td></td>
+ </tr>
</table>
</td>
</tr>
<br>
<br><b>
-[% IF kne %]
+[% IF exportformat == 'kne' %]
[% 'KNE Export successful!' | $T8 %]
[% END %]
-[% IF csv %]
+[% IF exportformat == 'csv' %]
[% 'CSV Export successful!' | $T8 %]
[% END %]
<input type=hidden name=passwort value="[% passwort %]">
<input type=hidden name=mandantennr value="[% mandantennr %]">
<input type=hidden name=datentraegernr value="[% datentraegernr %]">
-<input type=hidden name=kne value="[% kne %]">
-<input type=hidden name=csv value="[% csv %]">
+<input type=hidden name=exportformat value="[% exportformat %]">
<input type=hidden name=abrechnungsnr value="[% abrechnungsnr %]">
<input type=hidden name=exporttype value="[% exporttype %]">