sub continue { call_sub($main::form->{"nextsub"}); }
sub export {
- $main::lxdebug->enter_sub();
+ $::lxdebug->enter_sub;
+ $::auth->assert('datev_export');
- my $form = $main::form;
- my %myconfig = %main::myconfig;
- my $locale = $main::locale;
+ DATEV->get_datev_stamm(\%::myconfig, $::form);
+ $::form->header;
+ print $::form->parse_html_template('datev/export');
- $main::auth->assert('datev_export');
-
- $form->{title} = $locale->text("DATEX - Export Assistent");
-
- DATEV->get_datev_stamm(\%myconfig, \%$form);
- $form->header;
-
- print qq|
-<body>
-
-<form method=post action=$form->{script}>
-
-
-<table width=100%>
- <tr>
- <th class=listtop>$form->{title}</th>
- </tr>
- <tr>
- <th align=left>| . $locale->text("DATEV Angaben") . qq|</th>
- </tr>
- <tr height="5"></tr>
- <tr valign=top>
- <td>
- <table>
- <tr>
- <td align=left nowrap>| . $locale->text("Beraternummer") . qq|</td>
- <td><input name=beraternr size=10 maxlength=7 value="$form->{beraternr}"></td>
-
- <td align=left nowrap>| . $locale->text("DFV-Kennzeichen") . qq|</td>
- <td><input name=dfvkz size=5 maxlength=2 value="$form->{dfvkz}"></td>
- </tr>
- <tr>
- <td align=left nowrap>| . $locale->text("Beratername") . qq|</td>
- <td><input name=beratername size=10 maxlength=9 value="$form->{beratername}"></td>
-
- <td align=left nowrap>| . $locale->text("Password") . qq|</td>
- <td><input name=passwort size=5 maxlength=4 value="$form->{passwort}"></td>
- </tr>
- <tr>
- <td align=left nowrap>| . $locale->text("Mandantennummer") . qq|</td>
- <td><input name=mandantennr size=10 maxlength=5 value="$form->{mandantennr}"></td>
-
- <td align=left nowrap>| . $locale->text("Medium Number") . qq|</td>
- <td><input name=datentraegernr size=5 maxlength=3 value="$form->{datentraegernr}"></td>
- </tr>
- <tr>
- | . # OBE-Export noch nicht implementiert! <td><input checked name=kne type=checkbox class=checkbox value=1> | . $locale->text("Kontonummernerweiterung (KNE)") . qq|</td>
- qq|<td><input type="hidden" name="kne" value="1"></td>
- <td></td>
-
- <td align=left nowrap>| . $locale->text("Abrechnungsnummer") . qq|</td>
- <td><input name=abrechnungsnr size=5 maxlength=3 value="$form->{abrechnungsnr}"></td>
- </tr>
-
- <tr>
- <td><input name=exporttype type=radio class=radio value=0 checked> |
- . $locale->text("Export Buchungsdaten") . qq|</td>
- <td></td>
-
- <td><input name=exporttype type=radio class=radio value=1> |
- . $locale->text("Export Stammdaten") . qq|</td>
- <td></td>
- </td>
- </table>
- </td>
- </tr>
- <tr>
- <td><hr size=3 noshade></td>
- </tr>
-</table>
-
-<input type=hidden name=nextsub value=export2>
-
-<br>
-<input type=submit class=submit name=action value="|
- . $locale->text('Continue') . qq|">
-</form>
-
-</body>
-</html>
-|;
- $main::lxdebug->leave_sub();
+ $::lxdebug->leave_sub;
}
sub export2 {
- $main::lxdebug->enter_sub();
-
- my $form = $main::form;
+ $::lxdebug->enter_sub;
+ $::auth->assert('datev_export');
- $main::auth->assert('datev_export');
-
- if ($form->{exporttype} == 0) {
- &export_bewegungsdaten();
+ if ($::form->{exporttype} == 0) {
+ export_bewegungsdaten();
} else {
- &export_stammdaten();
+ export_stammdaten();
}
- $main::lxdebug->leave_sub();
+ $::lxdebug->leave_sub;
}
sub export_bewegungsdaten {
- $main::lxdebug->enter_sub();
+ $::lxdebug->enter_sub;
+ $::auth->assert('datev_export');
- my $form = $main::form;
- my %myconfig = %main::myconfig;
- my $locale = $main::locale;
+ $::form->header;
+ print $::form->parse_html_template('datev/export_bewegungsdaten');
- $main::auth->assert('datev_export');
-
- $form->{title} = $locale->text("DATEX - Export Assistent");
-
- $form->{allemonate} =
- qq|<option value=1>|
- . $locale->text('January')
- . qq|</option>
- <option value=2>|
- . $locale->text('February') . qq|</option>
- <option value=3>|
- . $locale->text('March') . qq|</option>
- <option value=4>|
- . $locale->text('April') . qq|</option>
- <option value=5>|
- . $locale->text('May') . qq|</option>
- <option value=6>|
- . $locale->text('June') . qq|</option>
- <option value=7>|
- . $locale->text('July') . qq|</option>
- <option value=8>|
- . $locale->text('August') . qq|</option>
- <option value=9>|
- . $locale->text('September') . qq|</option>
- <option value=10>|
- . $locale->text('October') . qq|</option>
- <option value=11>|
- . $locale->text('November') . qq|</option>
- <option value=12>|
- . $locale->text('December') . qq|</option>|;
-
- $form->{allequartale} =
- qq|<option selected value=1>|
- . $locale->text('I')
- . qq|</option>
- <option value=2>| . $locale->text('II') . qq|</option>
- <option value=3>|
- . $locale->text('III') . qq|</option>
- <option value=4>|
- . $locale->text('IV') . qq|</option>|;
- $form->{"jsscript"} = 1;
- $form->header;
-
- print qq|
-<body>
-
-<form method=post action=$form->{script}>
-
-
-<table width=100%>
- <tr>
- <th class=listtop>$form->{title}</th>
- </tr>
- <tr>
- <th align=left>| . $locale->text("Zeitraum") . qq|</th>
- </tr>
- <tr height="5"></tr>
- <tr valign=top>
- <td>
- <table>
- <tr>
- <td align=left><input checked name=zeitraum class=radio type=radio value=monat> </td><td align=left>|
- . $locale->text('Monat') . qq|</td>
- <td align=left></td>
- <td align=left></td>
- <td align=left><select name=monat>$form->{allemonate}</select></td>
- </tr>
- <tr>
- <td align=left><input name=zeitraum class=radio type=radio value=quartal> </td><td align=left>|
- . $locale->text('Quartal') . qq|</td>
- <td align=left></td>
- <td align=left></td>
- <td align=left><select name=quartal>$form->{allequartale}</select></td>
- </tr>
- <tr>
- <td align=left><input name=zeitraum class=radio type=radio value=zeit> </td><td align=left>|
- . $locale->text('Datum von') . qq|</td>
- <td align=left><input id=transdatefrom name=transdatefrom size=10>
- <input type="button" name="transdatefrom" id="trigger_transdatefrom" value="?"></td>
- <td align=left>| . $locale->text('bis') . qq|</td>
- <td align=left><input id=transdateto name=transdateto size=10>
- <input type="button" name="transdateto" id="trigger_transdateto" value="?"></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td><hr size=3 noshade></td>
- </tr>
-</table>
-
-| . $form->write_trigger(\%myconfig, 2,
- "transdatefrom", "BL", "trigger_transdatefrom",
- "transdateto", "BL", "trigger_transdateto") . qq|
-
-<input type=hidden name=beraternr value="$form->{beraternr}">
-<input type=hidden name=dfvkz value="$form->{dfvkz}">
-<input type=hidden name=beratername value="$form->{beratername}">
-<input type=hidden name=passwort value="$form->{passwort}">
-<input type=hidden name=mandantennr value="$form->{mandantennr}">
-<input type=hidden name=datentraegernr value="$form->{datentraegernr}">
-<input type=hidden name=kne value="$form->{kne}">
-<input type=hidden name=abrechnungsnr value="$form->{abrechnungsnr}">
-
-<input type=hidden name=exporttype value="$form->{exporttype}">
-
-<input type=hidden name=nextsub value=export3>
-
-<br>
-<input type=submit class=submit name=action value="|
- . $locale->text('Continue') . qq|">
-</form>
-
-</body>
-</html>
-|;
-
- $main::lxdebug->leave_sub();
+ $::lxdebug->leave_sub;
}
sub export_stammdaten {
- $main::lxdebug->enter_sub();
+ $::lxdebug->enter_sub;
+ $::auth->assert('datev_export');
- my $form = $main::form;
- my $locale = $main::locale;
+ $::form->header;
+ print $::form->parse_html_template('datev/export_stammdaten');
- $main::auth->assert('datev_export');
-
- $form->{title} = $locale->text("DATEX - Export Assistent");
-
- $form->header;
-
- print qq|
-<body>
-
-<form method=post action=$form->{script}>
-<table width=100%>
- <tr>
- <th class=listtop>$form->{title}</th>
- </tr>
- <tr>
- <th align=left>| . $locale->text("Konten") . qq|</th>
- </tr>
- <tr height="5"></tr>
- <tr valign=top>
- <td>
- <table>
- <tr>
- <td align=left>| . $locale->text('Von Konto: ') . qq|</td>
- <td align=left><input name=accnofrom size=8 maxlength=8></td>
- </tr>
- <tr>
- <td align=left>| . $locale->text('Bis Konto: ') . qq|</td>
- <td align=left><input name=accnoto size=8 maxlength=8></td>
- </tr>
- </table>
- </td>
- </tr>
- <tr>
- <td><hr size=3 noshade></td>
- </tr>
-</table>
-<input type=hidden name=beraternr value="$form->{beraternr}">
-<input type=hidden name=dfvkz value="$form->{dfvkz}">
-<input type=hidden name=beratername value="$form->{beratername}">
-<input type=hidden name=passwort value="$form->{passwort}">
-<input type=hidden name=mandantennr value="$form->{mandantennr}">
-<input type=hidden name=datentraegernr value="$form->{datentraegernr}">
-<input type=hidden name=kne value="$form->{kne}">
-<input type=hidden name=abrechnungsnr value="$form->{abrechnungsnr}">
-
-<input type=hidden name=exporttype value="$form->{exporttype}">
-
-<input type=hidden name=nextsub value=export3>
-
-<br>
-<input type=submit class=submit name=action value="|
- . $locale->text('Continue') . qq|">
-</form>
-
-</body>
-</html>
-|;
-
- $main::lxdebug->leave_sub();
+ $::lxdebug->leave_sub;
}
sub export3 {
--- /dev/null
+[%- USE T8 %]
+[%- USE L %]
+<body>
+
+<form method=post action="[% script %]">
+
+
+<table width=100%>
+ <tr>
+ <th class=listtop>[% 'DATEX - Export Assistent' | $T8 %]</th>
+ </tr>
+ <tr>
+ <th align=left>[% 'Zeitraum' | $T8 %]</th>
+ </tr>
+ <tr height="5"></tr>
+ <tr valign=top>
+ <td>
+ <table>
+ <tr>
+ <td align=left><input checked name=zeitraum class=radio type=radio value=monat> </td>
+ <td align=left>[% 'Monat' | $T8 %]</td>
+ <td align=left></td>
+ <td align=left></td>
+ <td align=left><select name=monat>
+ <option value=1>[% 'January' | $T8 %]</option>
+ <option value=2>[% 'February' | $T8 %]</option>
+ <option value=3>[% 'March' | $T8 %]</option>
+ <option value=4>[% 'April' | $T8 %]</option>
+ <option value=5>[% 'May' | $T8 %]</option>
+ <option value=6>[% 'June' | $T8 %]</option>
+ <option value=7>[% 'July' | $T8 %]</option>
+ <option value=8>[% 'August' | $T8 %]</option>
+ <option value=9>[% 'September' | $T8 %]</option>
+ <option value=10>[% 'October' | $T8 %]</option>
+ <option value=11>[% 'November' | $T8 %]</option>
+ <option value=12>[% 'December' | $T8 %]</option>
+ </select></td>
+ </tr>
+ <tr>
+ <td align=left><input name=zeitraum class=radio type=radio value=quartal> </td>
+ <td align=left>[% 'Quartal' | $T8 %]</td>
+ <td align=left></td>
+ <td align=left></td>
+ <td align=left><select name=quartal>
+ <option selected value=1>[% 'I' | $T8 %]</option>
+ <option value=2>[% 'II' | $T8 %]</option>
+ <option value=3>[% 'III' | $T8 %]</option>
+ <option value=4>[% 'IV' | $T8 %]</option>
+ </select></td>
+ </tr>
+ <tr>
+ <td align=left><input name=zeitraum class=radio type=radio value=zeit> </td>
+ <td align=left>[% 'Datum von' | $T8 %]</td>
+ <td align=left>[% L.date_tag('transdatefrom') %]</td>
+ <td align=left>[% 'bis' | $T8 %]</td>
+ <td align=left>[% L.date_tag('transdateto') %]</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr>
+ <td><hr size=3 noshade></td>
+ </tr>
+</table>
+
+<input type=hidden name=beraternr value="[% beraternr %]">
+<input type=hidden name=dfvkz value="[% dfvkz %]">
+<input type=hidden name=beratername value="[% beratername %]">
+<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=abrechnungsnr value="[% abrechnungsnr %]">
+
+<input type=hidden name=exporttype value="[% exporttype %]">
+
+<input type=hidden name=nextsub value=export3>
+
+<br>
+<input type=submit class=submit name=action value="[% 'Continue' | $T8 %]">
+</form>
+
+</body>
+</html>