X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/4c9ae7fe80ec4b8bebca3935ac6c3d2cca788fae..1ac4c07d0d3e6ffa8b39221dd865a6080bbae808:/bin/mozilla/sepa.pl diff --git a/bin/mozilla/sepa.pl b/bin/mozilla/sepa.pl index ac018e258..8e5f807ed 100755 --- a/bin/mozilla/sepa.pl +++ b/bin/mozilla/sepa.pl @@ -6,6 +6,7 @@ use POSIX qw(strftime); use Data::Dumper; use SL::DB::BankAccount; +use SL::DB::SepaExport; use SL::Chart; use SL::CT; use SL::Form; @@ -546,6 +547,15 @@ sub bank_transfer_download_sepa_xml { 'date_of_signature' => $item->{mandate_date_of_signature}, }); } + # Store the message ID used in each of the entries in order to + # facilitate finding them by looking at bank statements. + foreach my $id (@ids) { + SL::DB::SepaExportMessageId->new( + sepa_export_id => $id, + message_id => $message_id, + )->save; + } + my $xml = $sepa_xml->to_xml(); print $cgi->header('-type' => 'application/octet-stream',