$joins_sub{$arap} = 1;
}
+ if ($filter->{message_id}) {
+ push @values, '%' . $filter->{message_id} . '%';
+ push @where, <<SQL;
+ se.id IN (
+ SELECT sepa_export_id
+ FROM sepa_export_message_ids
+ WHERE message_id ILIKE ?
+ )
+SQL
+ }
+
if ($filter->{vc}) {
push @where_sub, "vc.name ILIKE ?";
push @values_sub, '%' . $filter->{vc} . '%';
my %filter = map +( $_ => $form->{"f_${_}"} ),
grep { $form->{"f_${_}"} }
- (qw(vc invnumber),
+ (qw(vc invnumber message_id),
map { ("${_}_date_from", "${_}_date_to") }
qw(export requested_execution execution));
$filter{executed} = $form->{l_executed} ? 1 : 0 if ($form->{l_executed} != $form->{l_not_executed});
'SEPA XML download' => 'SEPA-XML-Download',
'SEPA creditor ID' => 'SEPA-Kreditoren-Identifikation',
'SEPA exports:' => 'SEPA-Exporte:',
+ 'SEPA message ID' => 'SEPA-Nachrichten-ID',
'SEPA message IDs' => 'SEPA-Nachrichten-IDs',
'SEPA strings' => 'SEPA-Überweisungen',
'Saldo Credit' => 'Saldo Haben',
<td><input name="f_invnumber"></td>
</tr>
+ <tr>
+ <td align="right">[% LxERP.t8("SEPA message ID") %]</td>
+ <td>[% L.input_tag("f_message_id") %]</td>
+ </tr>
+
<tr>
<td align="right">[% 'Export date from' | $T8 %]</td>
<td>