Revision 43550a3d
Von Stephan Köhler vor etwa 19 Jahren hinzugefügt
SL/DATEV.pm | ||
---|---|---|
256 | 256 |
$sth->execute || $form->dberror($query); |
257 | 257 |
$i = 0; |
258 | 258 |
$g = 0; |
259 |
my $counter = 0; |
|
259 | 260 |
@splits; |
260 | 261 |
while (my $ref = $sth->fetchrow_hashref(NAME_lc)) { |
261 | 262 |
$count = 0; |
262 | 263 |
$firstrun = 1; |
264 |
$counter++; |
|
265 |
if (($counter % 500) == 0) { |
|
266 |
print("$counter "); |
|
267 |
} |
|
268 |
|
|
263 | 269 |
$count += $ref->{amount}; |
264 | 270 |
push @{$i}, $ref; |
265 | 271 |
while (abs($count) > 0.01 || $firstrun) { |
... | ... | |
587 | 593 |
my $evfile = "EV01"; |
588 | 594 |
my @ed_versionsets; |
589 | 595 |
my $fileno = 0; |
596 |
|
|
597 |
$form->header; |
|
598 |
print qq| |
|
599 |
<html> |
|
600 |
<body>Export in Bearbeitung<br> |
|
601 |
Buchungssätze verarbeitet: |
|
602 |
|; |
|
590 | 603 |
|
591 | 604 |
$fromto = |
592 | 605 |
&get_dates($form->{zeitraum}, $form->{monat}, |
593 | 606 |
$form->{quartal}, $form->{transdatefrom}, |
594 | 607 |
$form->{transdateto}); |
595 | 608 |
&get_transactions($myconfig, $form, $fromto); |
596 |
|
|
609 |
my $counter = 0; |
|
610 |
print qq|<br>2. Durchlauf:|; |
|
597 | 611 |
while (scalar(@{ $form->{DATEV} })) { |
598 | 612 |
my $blockcount = 1; |
599 | 613 |
my $remaining_bytes = 256; |
... | ... | |
609 | 623 |
while (scalar(@{ $form->{DATEV} }) > 0) { |
610 | 624 |
$transaction = shift @{ $form->{DATEV} }; |
611 | 625 |
$trans_lines = scalar(@{$transaction}); |
626 |
$counter++; |
|
627 |
if (($counter % 500) == 0) { |
|
628 |
print("$counter "); |
|
629 |
} |
|
630 |
|
|
612 | 631 |
$umsatz = 0; |
613 | 632 |
$gegenkonto = ""; |
614 | 633 |
$konto = ""; |
... | ... | |
809 | 828 |
print(EV $ed_versionset[$file]); |
810 | 829 |
} |
811 | 830 |
close(EV); |
831 |
print qq|<br>Done. <br></body> |
|
832 |
</html> |
|
833 |
|; |
|
812 | 834 |
### |
813 | 835 |
$main::lxdebug->leave_sub(); |
814 | 836 |
} |
Auch abrufbar als: Unified diff
Merge von 610 aus unstable: Datev Bug
Rueckmeldung eingebaut, damit waehrend großen Exportvorgaengen kein Timeout vom Server kommt