From: Jan Büren Date: Fri, 10 Dec 2021 13:49:46 +0000 (+0100) Subject: Lohnbuchhaltungsimport: Leere Werte für Abteilungen abfangen X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~270 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=d32410ac096b;p=kivitendo-erp.git Lohnbuchhaltungsimport: Leere Werte für Abteilungen abfangen --- diff --git a/SL/Controller/PayPostingImport.pm b/SL/Controller/PayPostingImport.pm index 6d9fd2ac4..a2d103f2f 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(description => { like => $department_name . '%' }); + } my $amount = $::form->parse_amount({ numberformat => '1000,00' }, $row->[0]);