Kontoauszug verbuchen: Banktransaktionen mit Fehlern nicht zählen
[kivitendo-erp.git] / SL / Controller / BankTransaction.pm
index 8bc3317..e632631 100644 (file)
@@ -511,6 +511,9 @@ sub save_invoices {
       $count += scalar( @{$invoice_ids} );
     }
   }
+  foreach (@{ $self->problems }) {
+    $count-- if $_->{result} eq 'error';
+  }
   return $count;
 }