Revision 7b166f80
SL/DB/BankTransaction.pm | ||
---|---|---|
276 | 276 |
if (scalar @$seis == 1) { |
277 | 277 |
my $sei = $seis->[0]; |
278 | 278 |
# 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) { |
|
280 | 280 |
$agreement += $points{end_to_end_id}; |
281 | 281 |
$rule_matches .= 'end_to_end_id(' . $points{'end_to_end_id'} . ') '; |
282 | 282 |
} |
283 | 283 |
|
284 | 284 |
# test for amount and id matching only, sepa transfer date and bank |
285 | 285 |
# transaction date needn't match |
286 |
if (abs($self->amount) == ($sei->amount) && $invoice->id == $sei->arap_id) {
|
|
286 |
if (abs($self->amount) == ($sei->amount)) { |
|
287 | 287 |
$agreement += $points{sepa_export_item}; |
288 | 288 |
$rule_matches .= 'sepa_export_item(' . $points{'sepa_export_item'} . ') '; |
289 | 289 |
} |
Auch abrufbar als: Unified diff
refactor: Prüfung auf ID erfolgt schon vorher