#7936 improve InvoiceIn #1004
|
@ -165,7 +165,9 @@ const columns = computed(() => [
|
|||
v-model="props.row['intrastatFk']"
|
||||
:options="intrastats"
|
||||
option-value="id"
|
||||
option-label="description"
|
||||
:option-label="
|
||||
(row) => `${row.id}:${row.description}`
|
||||
"
|
||||
:filter-options="['id', 'description']"
|
||||
>
|
||||
<template #option="scope">
|
||||
|
|
|
@ -118,6 +118,8 @@ function taxRate(invoiceInTax) {
|
|||
|
||||
return ((taxTypeSage / 100) * taxableBase).toFixed(2);
|
||||
}
|
||||
|
||||
const formatLabel = (row, prop) => `${row.id}: ${row[prop]}`;
|
||||
</script>
|
||||
<template>
|
||||
<FetchData
|
||||
|
@ -296,7 +298,7 @@ function taxRate(invoiceInTax) {
|
|||
v-model="props.row['expenseFk']"
|
||||
:options="expenses"
|
||||
option-value="id"
|
||||
option-label="name"
|
||||
:option-label="(row) => `${row.id}:${row.name}`"
|
||||
:filter-options="['id', 'name']"
|
||||
:tooltip="t('Create a new expense')"
|
||||
>
|
||||
|
@ -330,7 +332,7 @@ function taxRate(invoiceInTax) {
|
|||
v-model="props.row['taxTypeSageFk']"
|
||||
:options="sageTaxTypes"
|
||||
option-value="id"
|
||||
option-label="vat"
|
||||
:option-label="(row) => `${row.id}:${row.vat}`"
|
||||
:filter-options="['id', 'vat']"
|
||||
>
|
||||
<template #option="scope">
|
||||
|
@ -353,7 +355,9 @@ function taxRate(invoiceInTax) {
|
|||
v-model="props.row['transactionTypeSageFk']"
|
||||
:options="sageTransactionTypes"
|
||||
option-value="id"
|
||||
option-label="transaction"
|
||||
:option-label="
|
||||
(row) => `${row.id}:${row.transaction}`
|
||||
"
|
||||
:filter-options="['id', 'transaction']"
|
||||
>
|
||||
<template #option="scope">
|
||||
|
|
Loading…
Reference in New Issue