Abteilung bei Lohnbuchhaltung zuordnen, get_first mit richtigen Parameteraufruf
[kivitendo-erp.git] / SL / Controller / PayPostingImport.pm
index a2d103f..c8d3909 100644 (file)
@@ -82,7 +82,7 @@ sub parse_and_import {
       # optional KOST1 - KOST2 ?
       $department_name = $row->[36];
       if ($department_name) {
-        $department    = SL::DB::Manager::Department->get_first(description => { like =>  $department_name . '%' });
+        $department    = SL::DB::Manager::Department->get_first(where => [ description => { ilike =>  $department_name . '%' } ]);
       }
 
       my $amount = $::form->parse_amount({ numberformat => '1000,00' }, $row->[0]);