DATEV: Warnungen as DATEV::CSV auch weiterreichen
authorJan Büren <jan@kivitendo-premium.de>
Thu, 2 Nov 2017 11:50:00 +0000 (12:50 +0100)
committerJan Büren <jan@kivitendo-premium.de>
Tue, 7 Nov 2017 09:32:19 +0000 (10:32 +0100)
SL/DATEV.pm

index 0c51015..0b24d48 100644 (file)
@@ -376,11 +376,11 @@ sub csv_export {
   $self->generate_datev_data(from_to => $self->fromto);
   return if $self->errors;
 
-  my $datev_ref = SL::DATEV::CSV->new(datev_lines  => $self->generate_datev_lines,
-                                      from         => $self->from,
-                                      to           => $self->to,
-                                      locked       => $self->locked,
-                                     );
+  my $datev_ref, $self->warnings = SL::DATEV::CSV->new(datev_lines  => $self->generate_datev_lines,
+                                                       from         => $self->from,
+                                                       to           => $self->to,
+                                                       locked       => $self->locked,
+                                                      );
 
   my $filename = "EXTF_DATEV_kivitendo" . $self->from->ymd() . '-' . $self->to->ymd() . ".csv";