Revision 1b032ef4
Von Jan Büren vor mehr als 2 Jahren hinzugefügt
SL/DB/BankTransaction.pm | ||
---|---|---|
99 | 99 |
$bank_code = $invoice->vendor->bank_code if ! $invoice->is_sales; |
100 | 100 |
$iban = $invoice->vendor->iban if ! $invoice->is_sales; |
101 | 101 |
$account_number = $invoice->vendor->account_number if ! $invoice->is_sales; |
102 |
|
|
103 |
# check only valid remote_account_number (with some content) |
|
104 |
if ($self->remote_account_number) { |
|
105 |
if ($bank_code eq $self->remote_bank_code && $account_number eq $self->remote_account_number) { |
|
106 |
$agreement += $points{remote_account_number}; |
|
107 |
$rule_matches .= 'remote_account_number(' . $points{'remote_account_number'} . ') '; |
|
108 |
} elsif ($iban eq $self->remote_account_number) { # elsif -> do not add twice |
|
109 |
$agreement += $points{remote_account_number}; |
|
110 |
$rule_matches .= 'remote_account_number(' . $points{'remote_account_number'} . ') '; |
|
111 |
} |
|
112 |
} |
|
102 | 113 |
if ( $bank_code eq $self->remote_bank_code && $account_number eq $self->remote_account_number ) { |
103 | 114 |
$agreement += $points{remote_account_number}; |
104 | 115 |
$rule_matches .= 'remote_account_number(' . $points{'remote_account_number'} . ') '; |
Auch abrufbar als: Unified diff
Vorschläge für Kontoauszüge verbessern, fall: remote_account_number
Treffer sauberer setzen, ist überhaupt eine nicht leere Kontonummer vorhanden?