fix: refs #8277 update entry account options to use 'code' for value and sorting
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Jorge Penadés 2025-04-15 16:27:25 +02:00
parent 494948cb20
commit 00063ae20a
1 changed files with 6 additions and 4 deletions

View File

@ -172,8 +172,8 @@ const columns = computed(() => [
name: 'accountType', name: 'accountType',
options: entryAccounts.value, options: entryAccounts.value,
optionLabel: 'type', optionLabel: 'type',
optionValue: 'id', optionValue: 'code',
sortBy: 'id', sortBy: 'code',
}, },
}, },
{ {
@ -333,8 +333,10 @@ async function createInvoice() {
/> />
<FetchData <FetchData
url="EntryAccounts" url="EntryAccounts"
:filter="{ fields: ['id', 'type'] }" :filter="{ fields: ['code', 'type'] }"
@on-fetch="(data) => (entryAccounts = data)" @on-fetch="
(data) => (entryAccounts = data.map((x) => ({ ...x, type: $t(x.type) })))
"
auto-load auto-load
/> />
<FetchData <FetchData