Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -276,6 +276,7 @@ import { useStatementdetailStore } from 'src/stores/statementdetailStore'
|
||||
import { useDownloadstpdfStore } from 'src/stores/downloadstpdfStore'
|
||||
import dayjs from 'dayjs'
|
||||
import { usePermission } from 'src/composables/usePermission'
|
||||
import { normalizeSearchText } from 'src/utils/searchText'
|
||||
|
||||
const { canRead, canExport } = usePermission()
|
||||
const canReadFinance = canRead('finance')
|
||||
@@ -297,10 +298,10 @@ function filterCari(val, update) {
|
||||
update(() => { filteredOptions.value = accountStore.accountOptions })
|
||||
return
|
||||
}
|
||||
const needle = val.toLowerCase()
|
||||
const needle = normalizeSearchText(val)
|
||||
update(() => {
|
||||
filteredOptions.value = accountStore.accountOptions.filter(o =>
|
||||
o.label.toLowerCase().includes(needle) || o.value.toLowerCase().includes(needle)
|
||||
normalizeSearchText(o.label).includes(needle) || normalizeSearchText(o.value).includes(needle)
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user