Revision 44351ca4
Von Martin Helmling martin.helmling@octosoft.eu vor etwa 7 Jahren hinzugefügt
SL/Controller/BankTransaction.pm | ||
---|---|---|
153 | 153 |
$bt->{remote_name} .= $bt->{remote_name_1} if $bt->{remote_name_1}; |
154 | 154 |
|
155 | 155 |
if ( $bt->is_batch_transaction ) { |
156 |
my $found=0; |
|
156 | 157 |
foreach ( keys %sepa_exports) { |
157 | 158 |
if ( abs(($sepa_exports{$_}->{amount} * 1) - ($bt->amount * 1)) < 0.01 ) { |
158 | 159 |
## jupp |
... | ... | |
160 | 161 |
$bt->{sepa_export_ok} = 1; |
161 | 162 |
$sepa_exports{$_}->{proposed}=1; |
162 | 163 |
push(@proposals, $bt); |
163 |
next; |
|
164 |
$found=1; |
|
165 |
last; |
|
164 | 166 |
} |
165 | 167 |
} |
168 |
next if $found; |
|
166 | 169 |
# batch transaction has no remotename !! |
167 | 170 |
} else { |
168 | 171 |
next unless $bt->{remote_name}; # bank has no name, usually fees, use create invoice to assign |
Auch abrufbar als: Unified diff
SEPA-Sammelanweisung (is_batch_transaction): BUGFIX Loop richtig beenden
Wurde eine Sammelanweisung gefunden, ist die Suche für die betroffenen Banktransaktion beendet.
Fälschlicherweise wurde nur die innere Schleife beendet, es muss aber die äußere Schleife beendet werden.