X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fdatev.pl;h=428a391e05c6f46872301d02c1cef352b651ffc7;hb=b4c84c7e755cbd74d579b0910aeb794f60804e9d;hp=8d18281ee72343f640e7fccdd8b3192d0956fb8f;hpb=5b5fc3ca94e10e9e29591e31358e66ea8f8db14e;p=kivitendo-erp.git diff --git a/bin/mozilla/datev.pl b/bin/mozilla/datev.pl index 8d18281ee..428a391e0 100644 --- a/bin/mozilla/datev.pl +++ b/bin/mozilla/datev.pl @@ -118,6 +118,8 @@ sub export3 { $::form->{transdatefrom}, $::form->{transdateto}, ); $data{use_pk} = $::form->{use_pk}; + $data{locked} = $::form->{locked}; + $data{imported} = $::form->{imported}; } else { die 'invalid exporttype'; } @@ -199,6 +201,9 @@ sub _get_dates { if ($mode eq "monat") { $fromdate = DateTime->new(day => 1, month => $month, year => DateTime->today->year); + # december export is usually in january/february + $fromdate = $fromdate->subtract(years => 1) if ($month == 12); + $todate = $fromdate->clone->add(months => 1)->add(days => -1); } elsif ($mode eq "quartal") { die 'quarter out of of bounds' if $quarter < 1 || $quarter > 4;