Revision 15cc7149
Von Moritz Bunkus vor etwa 8 Jahren hinzugefügt
bin/mozilla/datev.pl | ||
---|---|---|
|
||
use SL::Common;
|
||
use SL::DATEV qw(:CONSTANTS);
|
||
use SL::Locale::String qw(t8);
|
||
|
||
use strict;
|
||
|
||
... | ... | |
|
||
my $stamm = SL::DATEV->new->get_datev_stamm;
|
||
|
||
setup_datev_export_action_bar();
|
||
|
||
$::form->header;
|
||
print $::form->parse_html_template('datev/export', $stamm);
|
||
|
||
... | ... | |
$::lxdebug->enter_sub;
|
||
$::auth->assert('datev_export');
|
||
|
||
setup_datev_export2_action_bar();
|
||
|
||
$::form->header;
|
||
print $::form->parse_html_template('datev/export_bewegungsdaten');
|
||
|
||
... | ... | |
$::lxdebug->enter_sub;
|
||
$::auth->assert('datev_export');
|
||
|
||
setup_datev_export2_action_bar();
|
||
|
||
$::form->header;
|
||
print $::form->parse_html_template('datev/export_stammdaten');
|
||
|
||
... | ... | |
$datev->export;
|
||
|
||
if (!$datev->errors) {
|
||
setup_datev_export3_action_bar(download_token => $datev->download_token);
|
||
|
||
$::form->header;
|
||
print $::form->parse_html_template('datev/export3', { datev => $datev });
|
||
print $::form->parse_html_template('datev/export3');
|
||
} else {
|
||
$::form->error("Export schlug fehl.\n" . join "\n", $datev->errors);
|
||
}
|
||
... | ... | |
|
||
return ($fromdate, $todate);
|
||
}
|
||
|
||
sub setup_datev_export_action_bar {
|
||
my %params = @_;
|
||
|
||
for my $bar ($::request->layout->get('actionbar')) {
|
||
$bar->add(
|
||
action => [
|
||
t8('Continue'),
|
||
submit => [ '#form', { action => 'export2' } ],
|
||
accesskey => 'enter',
|
||
],
|
||
);
|
||
}
|
||
}
|
||
|
||
sub setup_datev_export2_action_bar {
|
||
my %params = @_;
|
||
|
||
for my $bar ($::request->layout->get('actionbar')) {
|
||
$bar->add(
|
||
action => [
|
||
t8('Export'),
|
||
submit => [ '#form', { action => 'export3' } ],
|
||
accesskey => 'enter',
|
||
],
|
||
action => [
|
||
t8('Back'),
|
||
call => [ 'kivi.history_back' ],
|
||
],
|
||
);
|
||
}
|
||
}
|
||
|
||
sub setup_datev_export3_action_bar {
|
||
my %params = @_;
|
||
|
||
for my $bar ($::request->layout->get('actionbar')) {
|
||
$bar->add(
|
||
link => [
|
||
t8('Download'),
|
||
link => [ 'datev.pl?action=download&download_token=' . $::form->escape($params{download_token}) ],
|
||
],
|
||
action => [
|
||
t8('Back'),
|
||
call => [ 'kivi.history_back' ],
|
||
],
|
||
);
|
||
}
|
||
}
|
locale/de/all | ||
---|---|---|
'Done' => 'Fertig',
|
||
'Done.' => 'Fertig.',
|
||
'Double partnumbers' => 'Doppelte Artikelnummern',
|
||
'Download' => 'Download',
|
||
'Download PDF' => 'PDF herunterladen',
|
||
'Download PDF, do not print' => 'Nicht drucken, sondern PDF herunterladen',
|
||
'Download SEPA XML export file' => 'SEPA-XML-Exportdatei herunterladen',
|
templates/webpages/datev/export.html | ||
---|---|---|
[%- USE T8 %]
|
||
<h1>[% 'DATEX - Export Assistent' | $T8 %]</h1>
|
||
|
||
<form method=post action='[% script %]'>
|
||
<form method='post' action='[% script %]' id='form'>
|
||
|
||
<table width=100%>
|
||
<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="[% 'Continue' | $T8 %]">
|
||
</form>
|
||
|
templates/webpages/datev/export3.html | ||
---|---|---|
|
||
<br><b>[% 'KNE-Export erfolgreich!' | $T8 %]</b>
|
||
<br>
|
||
<br>
|
||
<a href="datev.pl?action=download&download_token=[% datev.download_token | html %]">Download</a>
|
||
|
||
[% IF datev.net_gross_differences.size %]
|
||
[% INCLUDE 'datev/net_gross_difference.html'
|
||
... | ... | |
sum_net_gross_differences = datev.sum_net_gross_differences
|
||
%]
|
||
[% END %]
|
||
|
templates/webpages/datev/export_bewegungsdaten.html | ||
---|---|---|
[%- USE L %]
|
||
<h1>[% 'DATEX - Export Assistent' | $T8 %]</h1>
|
||
|
||
<form method=post action="[% script %]">
|
||
<form method="post" action="[% script %]" id="form">
|
||
|
||
<table width=100%>
|
||
<tr>
|
||
... | ... | |
<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>
|
||
|
templates/webpages/datev/export_stammdaten.html | ||
---|---|---|
[%- USE T8 %]
|
||
<h1>[% 'DATEX - Export Assistent' | $T8 %]</h1>
|
||
|
||
<form method=post action="[% script %]">
|
||
<form method="post" action="[% script %]" id="form">
|
||
<table width=100%>
|
||
<tr>
|
||
<th align=left>[% 'Konten' | $T8 %]</th>
|
||
... | ... | |
<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>
|
||
|
Auch abrufbar als: Unified diff
ActionBar: Verwendung beim DATEV-Export