Zu Kontoauszug Zuordnung verbessern, alte Logik auch entfernen
authorJan Büren <jan@kivitendo.de>
Thu, 7 Apr 2022 12:19:08 +0000 (14:19 +0200)
committerJan Büren <jan@kivitendo.de>
Thu, 7 Apr 2022 12:19:08 +0000 (14:19 +0200)
SL/DB/BankTransaction.pm

index 8617a81..b07cdf1 100644 (file)
@@ -110,14 +110,6 @@ sub get_agreement_with_invoice {
       $rule_matches .= 'remote_account_number(' . $points{'remote_account_number'} . ') ';
     }
   }
-  if ( $bank_code eq $self->remote_bank_code && $account_number eq $self->remote_account_number ) {
-    $agreement += $points{remote_account_number};
-    $rule_matches .= 'remote_account_number(' . $points{'remote_account_number'} . ') ';
-  }
-  if ( $iban eq $self->remote_account_number ) {
-    $agreement += $points{remote_account_number};
-    $rule_matches .= 'remote_account_number(' . $points{'remote_account_number'} . ') ';
-  }
 
   my $datediff = $self->transdate->{utc_rd_days} - $invoice->transdate->{utc_rd_days};
   $invoice->{datediff} = $datediff;