Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 397b133c

Von Kivitendo Admin vor fast 9 Jahren hinzugefügt

  • ID 397b133c5083fc9d6c417af9ec9e4d490e6dd109
  • Vorgänger 4b65183f
  • Nachfolger 86299a41

Kontoauszug verbuchen - SEPA-Zahlungen berücksichtigen und schließen 2

auch bei Verbuchen per "Vorschlag" die SEPA-Zahlungen schließen.

Unterschiede anzeigen:

SL/Controller/BankTransaction.pm
SL::DB::RecordLink->new(@props)->save;
# "close" a sepa_export_item if it exists
# code duplicated in action_save_proposals!
# currently only works, if there is only exactly one open sepa_export_item
if ( my $seis = $invoice->find_sepa_export_items({ executed => 0 }) ) {
if ( scalar @$seis == 1 ) {
......
);
SL::DB::RecordLink->new(@props)->save;
# code duplicated in action_save_invoices!
# "close" a sepa_export_item if it exists
# currently only works, if there is only exactly one open sepa_export_item
if ( my $seis = $arap->find_sepa_export_items({ executed => 0 }) ) {
if ( scalar @$seis == 1 ) {
# moved the execution and the check for sepa_export into a method,
# this isn't part of a transaction, though
$seis->[0]->set_executed if $arap->id == $seis->[0]->arap_id;
};
};
}
flash('ok', t8('#1 proposal(s) saved.', scalar @{ $::form->{proposal_ids} }));

Auch abrufbar als: Unified diff