X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/20599de536d3333628504f390310dbfbeb7fb5ad..f82e94c7cbbea66d902e286c531d2282fc69f67c:/SL/Controller/CsvImport/Part.pm diff --git a/SL/Controller/CsvImport/Part.pm b/SL/Controller/CsvImport/Part.pm index 09430c6ab..80fd3cec4 100644 --- a/SL/Controller/CsvImport/Part.pm +++ b/SL/Controller/CsvImport/Part.pm @@ -223,7 +223,7 @@ sub check_buchungsgruppe { $object->buchungsgruppen_id(undef) if $object->buchungsgruppen_id && !$self->bg_by->{id}->{ $object->buchungsgruppen_id }; # 3. Look up name if supplied. - if (!$object->buchungsgruppen_id) { + if (!$object->buchungsgruppen_id && $entry->{raw_data}->{buchungsgruppe}) { my $bg = $self->bg_by->{description}->{ $entry->{raw_data}->{buchungsgruppe} }; $object->buchungsgruppen_id($bg->id) if $bg; }