X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/fa20286418007cfc27557498603adb4e9f31cebf..53593baa211863fbf66540cf1bcc36c8fb37257f:/SL/Controller/PayPostingImport.pm diff --git a/SL/Controller/PayPostingImport.pm b/SL/Controller/PayPostingImport.pm index 6d9fd2ac4..c8d39091d 100644 --- a/SL/Controller/PayPostingImport.pm +++ b/SL/Controller/PayPostingImport.pm @@ -81,7 +81,9 @@ sub parse_and_import { # optional KOST1 - KOST2 ? $department_name = $row->[36]; - $department = SL::DB::Manager::Department->get_first(description => { like => $department_name . '%' }); + if ($department_name) { + $department = SL::DB::Manager::Department->get_first(where => [ description => { ilike => $department_name . '%' } ]); + } my $amount = $::form->parse_amount({ numberformat => '1000,00' }, $row->[0]);