Implemented filtering remittees for which IBAN or BIC isn't set (which are both needed for auto completing remittee's IBAN and BIC)

This commit is contained in:
dankito 2020-05-23 16:31:29 +02:00
parent 8589a4efaa
commit 65dd57a73b
1 changed files with 3 additions and 1 deletions

View File

@ -37,7 +37,9 @@ open class LuceneRemitteeSearcher(indexFolder: File) : IRemitteeSearcher {
) )
} }
return searcher.searchAndMap(MappedSearchConfig(luceneQuery, Remittee::class.java, properties)).toSet().toList() return searcher.searchAndMap(MappedSearchConfig(luceneQuery, Remittee::class.java, properties))
.toSet() // don't display same Remittee multiple times
.filterNot { it.iban.isNullOrBlank() || it.bic.isNullOrBlank() } // e.g. comdirect doesn't supply other party's IBAN and BIC -> filter these as they have no value for auto-entering a remittee's IBAN and BIC
} }
} }