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:
parent
8589a4efaa
commit
65dd57a73b
|
@ -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
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue