Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-03-10 17:51:31 +03:00
parent d590732f38
commit aba71341b9
24 changed files with 299 additions and 160 deletions

View File

@@ -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)
)
})
}