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',
|
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
|
||||||
|
|
Loading…
Reference in New Issue