Zusätzliche Rechnungsadressen: Datenbankupgrade, MetaSetup, Rose-Models
[kivitendo-erp.git] / SL / DB / Manager / ReconciliationLink.pm
index 8f63a1c..76dc126 100644 (file)
@@ -21,7 +21,7 @@ sub get_new_rec_group {
 
   my ($max) = selectfirst_array_query($::form, $class->object_class->init_db->dbh, $query);
 
-  return $max + 1;
+  return ($max // 0) + 1;
 }
 
 1;