projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Leeren String in undef für anständige DB-Abfrage umwandeln
[kivitendo-erp.git]
/
SL
/
DATEV.pm
diff --git
a/SL/DATEV.pm
b/SL/DATEV.pm
index
508ed95
..
775d4df
100644
(file)
--- a/
SL/DATEV.pm
+++ b/
SL/DATEV.pm
@@
-58,7
+58,7
@@
sub get_path_for_download_token {
my $path;
if ($token =~ m|^(\d+)-(\d+)-(\d+)$|) {
my $path;
if ($token =~ m|^(\d+)-(\d+)-(\d+)$|) {
- $path =
"${main::userspath}
/datev-export-${1}-${2}-${3}";
+ $path =
$::lx_office_conf{paths}->{userspath} . "
/datev-export-${1}-${2}-${3}";
}
$main::lxdebug->leave_sub();
}
$main::lxdebug->leave_sub();
@@
-84,7
+84,7
@@
sub get_download_token_for_path {
sub clean_temporary_directories {
$main::lxdebug->enter_sub();
sub clean_temporary_directories {
$main::lxdebug->enter_sub();
- foreach my $path (glob
"${main::userspath}/datev-export-*"
) {
+ foreach my $path (glob
($::lx_office_conf{paths}->{userspath} . "/datev-export-*")
) {
next unless (-d $path);
my $mtime = (stat($path))[9];
next unless (-d $path);
my $mtime = (stat($path))[9];
@@
-399,8
+399,9
@@
sub _get_transactions {
my $count = $ref->{amount};
my $firstrun = 1;
my $count = $ref->{amount};
my $firstrun = 1;
+ my $subcent = abs($count) < 0.02;
- while (abs($count) > 0.01 || $firstrun) {
+ while (abs($count) > 0.01 || $firstrun
|| ($subcent && abs($count) > 0.001)
) {
my $ref2 = $sth->fetchrow_hashref("NAME_lc");
last unless ($ref2);
my $ref2 = $sth->fetchrow_hashref("NAME_lc");
last unless ($ref2);