0
0
Fork 0

fix: refs #6900 vat, dueday & intrastat

This commit is contained in:
Jorge Penadés 2024-08-08 16:54:21 +02:00
parent 1a4cf51246
commit 344ca7d243
3 changed files with 9 additions and 14 deletions

View File

@ -8,11 +8,11 @@ import { useArrayData } from 'src/composables/useArrayData';
import CrudModel from 'src/components/CrudModel.vue';
import FetchData from 'src/components/FetchData.vue';
import VnSelect from 'src/components/common/VnSelect.vue';
import VnCurrency from 'src/components/common/VnCurrency.vue';
import { toCurrency } from 'src/filters';
import useNotify from 'src/composables/useNotify.js';
import VnInput from 'src/components/common/VnInput.vue';
import VnInputDate from 'src/components/common/VnInputDate.vue';
import VnInputNumber from 'src/components/common/VnInputNumber.vue';
const route = useRoute();
const { notify } = useNotify();
@ -128,7 +128,7 @@ const getTotalAmount = (rows) => rows.reduce((acc, { amount }) => acc + +amount,
</template>
<template #body-cell-amount="{ row }">
<QTd>
<VnCurrency
<VnInputNumber
v-model="row.amount"
:is-outlined="false"
clearable
@ -198,12 +198,10 @@ const getTotalAmount = (rows) => rows.reduce((acc, { amount }) => acc + +amount,
</VnSelect>
</QItem>
<QItem>
<VnCurrency
<VnInputNumber
:label="t('Amount')"
class="full-width"
v-model="props.row.amount"
clearable
clear-icon="close"
/>
</QItem>
<QItem>

View File

@ -7,6 +7,7 @@ import CrudModel from 'src/components/CrudModel.vue';
import FetchData from 'src/components/FetchData.vue';
import VnSelect from 'src/components/common/VnSelect.vue';
import { useArrayData } from 'src/composables/useArrayData';
import VnInputNumber from 'src/components/common/VnInputNumber.vue';
const { t } = useI18n();
@ -115,11 +116,7 @@ const formatOpt = (row, { model, options }, prop) => {
>
<template #body-cell="{ row, col }">
<QTd>
<QInput
v-model="row[col.name]"
clearable
clear-icon="close"
/>
<VnInputNumber v-model="row[col.name]" />
</QTd>
</template>
<template #body-cell-code="{ row, col }">
@ -203,7 +200,7 @@ const formatOpt = (row, { model, options }, prop) => {
]"
:key="index"
>
<QInput
<VnInputNumber
:label="t(value)"
class="full-width"
v-model="props.row[value]"

View File

@ -9,8 +9,8 @@ import { toCurrency } from 'src/filters';
import FetchData from 'src/components/FetchData.vue';
import VnSelect from 'src/components/common/VnSelect.vue';
import CrudModel from 'src/components/CrudModel.vue';
import VnCurrency from 'src/components/common/VnCurrency.vue';
import VnInput from 'src/components/common/VnInput.vue';
import VnInputNumber from 'src/components/common/VnInputNumber.vue';
const { t } = useI18n();
const quasar = useQuasar();
@ -242,7 +242,7 @@ const formatOpt = (row, { model, options }, prop) => {
</template>
<template #body-cell-taxablebase="{ row }">
<QTd>
<VnCurrency
<VnInputNumber
:class="{
'no-pointer-events': isNotEuro(invoiceIn.currency.code),
}"
@ -358,7 +358,7 @@ const formatOpt = (row, { model, options }, prop) => {
</VnSelect>
</QItem>
<QItem>
<VnCurrency
<VnInputNumber
:label="t('Taxable base')"
:class="{
'no-pointer-events': isNotEuro(