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
gitea/salix-front/pipeline/pr-dev This commit is unstable
Details
This commit is contained in:
parent
494948cb20
commit
00063ae20a
|
@ -172,8 +172,8 @@ const columns = computed(() => [
|
|||
name: 'accountType',
|
||||
options: entryAccounts.value,
|
||||
optionLabel: 'type',
|
||||
optionValue: 'id',
|
||||
sortBy: 'id',
|
||||
optionValue: 'code',
|
||||
sortBy: 'code',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
@ -333,8 +333,10 @@ async function createInvoice() {
|
|||
/>
|
||||
<FetchData
|
||||
url="EntryAccounts"
|
||||
:filter="{ fields: ['id', 'type'] }"
|
||||
@on-fetch="(data) => (entryAccounts = data)"
|
||||
:filter="{ fields: ['code', 'type'] }"
|
||||
@on-fetch="
|
||||
(data) => (entryAccounts = data.map((x) => ({ ...x, type: $t(x.type) })))
|
||||
"
|
||||
auto-load
|
||||
/>
|
||||
<FetchData
|
||||
|
|
Loading…
Reference in New Issue