Revision 397b133c
Von Kivitendo Admin vor mehr als 8 Jahren hinzugefügt
SL/Controller/BankTransaction.pm | ||
---|---|---|
438 | 438 |
SL::DB::RecordLink->new(@props)->save; |
439 | 439 |
|
440 | 440 |
# "close" a sepa_export_item if it exists |
441 |
# code duplicated in action_save_proposals! |
|
441 | 442 |
# currently only works, if there is only exactly one open sepa_export_item |
442 | 443 |
if ( my $seis = $invoice->find_sepa_export_items({ executed => 0 }) ) { |
443 | 444 |
if ( scalar @$seis == 1 ) { |
... | ... | |
488 | 489 |
); |
489 | 490 |
|
490 | 491 |
SL::DB::RecordLink->new(@props)->save; |
492 |
|
|
493 |
# code duplicated in action_save_invoices! |
|
494 |
# "close" a sepa_export_item if it exists |
|
495 |
# currently only works, if there is only exactly one open sepa_export_item |
|
496 |
if ( my $seis = $arap->find_sepa_export_items({ executed => 0 }) ) { |
|
497 |
if ( scalar @$seis == 1 ) { |
|
498 |
# moved the execution and the check for sepa_export into a method, |
|
499 |
# this isn't part of a transaction, though |
|
500 |
$seis->[0]->set_executed if $arap->id == $seis->[0]->arap_id; |
|
501 |
}; |
|
502 |
}; |
|
491 | 503 |
} |
492 | 504 |
|
493 | 505 |
flash('ok', t8('#1 proposal(s) saved.', scalar @{ $::form->{proposal_ids} })); |
Auch abrufbar als: Unified diff
Kontoauszug verbuchen - SEPA-Zahlungen berücksichtigen und schließen 2
auch bei Verbuchen per "Vorschlag" die SEPA-Zahlungen schließen.