Add search support for SEPA CT

This commit is contained in:
Janne Heß
2022-11-27 16:48:47 +01:00
parent 04c71a2e9e
commit dcfcbfd9b5
4 changed files with 20 additions and 0 deletions

View File

@@ -699,4 +699,17 @@ trait MetaCollection
return $this;
}
/**
* @inheritDoc
*/
public function setSepaCT(string $sepaCT): GroupCollectorInterface
{
$this->joinMetaDataTables();
$this->query->where('journal_meta.name', '=', 'sepa_ct_id');
$this->query->where('journal_meta.data', '=', sprintf('%s', json_encode($sepaCT)));
$this->query->whereNull('journal_meta.deleted_at');
return $this;
}
}