X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/61894a270d50edef0e2d231fd972255abfb1639e..a2c8ac75876e26954813308b4b6448b101033021:/SL/DATEV.pm diff --git a/SL/DATEV.pm b/SL/DATEV.pm index f2bd0644c..ea410aca3 100644 --- a/SL/DATEV.pm +++ b/SL/DATEV.pm @@ -1172,7 +1172,7 @@ sub _format_accno { sub csv_export_for_tax_accountant { my ($self) = @_; - $self->_get_transactions(from_to => $self->fromto); + $self->generate_datev_data(from_to => $self->fromto); foreach my $transaction (@{ $self->{DATEV} }) { foreach my $entry (@{ $transaction }) { @@ -1464,6 +1464,25 @@ Returns a list of errors that occured. If no errors occured, the export was a su Exports data. You have to have set L and L or an error will occur. OBE exports are currently not implemented. +=item csv_export_for_tax_accountant + +Generates up to four downloadable csv files containing data about sales and +purchase invoices, and their respective payments: + +Example: + my $startdate = DateTime->new(year => 2012, month => 1, day => 1); + my $enddate = DateTime->new(year => 2012, month => 12, day => 31); + SL::DATEV->new(from => $startdate, to => $enddate)->csv_export_for_tax_accountant; + # { + # 'download_token' => '1488551625-815654-22430', + # 'filenames' => [ + # 'Zahlungen Kreditorenbuchungen 2012-01-01 - 2012-12-31.csv', + # 'Kreditorenbuchungen 2012-01-01 - 2012-12-31.csv', + # 'Zahlungen Debitorenbuchungen 2012-01-01 - 2012-12-31.csv', + # 'Debitorenbuchungen 2012-01-01 - 2012-12-31.csv' + # ] + # }; + =back =head1 ATTRIBUTES