Skip to content

Commit fbfb9fd

Browse files
kivijanjbueren
authored andcommitted
refactor: Prüfung auf ID erfolgt schon vorher
1 parent c2c8665 commit fbfb9fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SL/DB/BankTransaction.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,14 @@ sub get_agreement_with_invoice {
276276
if (scalar @$seis == 1) {
277277
my $sei = $seis->[0];
278278
# test for end to end id
279-
if ($self->end_to_end_id eq $sei->end_to_end_id && $invoice->id == $sei->arap_id) {
279+
if ($self->end_to_end_id eq $sei->end_to_end_id) {
280280
$agreement += $points{end_to_end_id};
281281
$rule_matches .= 'end_to_end_id(' . $points{'end_to_end_id'} . ') ';
282282
}
283283

284284
# test for amount and id matching only, sepa transfer date and bank
285285
# transaction date needn't match
286-
if (abs($self->amount) == ($sei->amount) && $invoice->id == $sei->arap_id) {
286+
if (abs($self->amount) == ($sei->amount)) {
287287
$agreement += $points{sepa_export_item};
288288
$rule_matches .= 'sepa_export_item(' . $points{'sepa_export_item'} . ') ';
289289
}

0 commit comments

Comments
 (0)