feat: refs #7731 supplierFiscalData
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Robert Ferrús 2024-10-21 13:16:06 +02:00
parent 6b99039e68
commit 82fce46999
3 changed files with 12 additions and 39 deletions

View File

@ -66,12 +66,16 @@ function filterFn(val, update) {
</template>
<template #after>
<QIcon name="info" class="cursor-pointer">
<QTooltip>{{ t('globals.allowedFilesText') }}</QTooltip>
<QTooltip>{{ t('viesTip') }}</QTooltip>
</QIcon>
</template>
</VnSelect>
</template>
<i18n>
es:
Vies: Vies
viesTip: El campo puede contener valores que no este en la lista
en:
viesTip: The field may contain value that are not in the list
</i18n>

View File

@ -1,5 +1,5 @@
<script setup>
import { nextTick, ref } from 'vue';
import { ref } from 'vue';
import { useI18n } from 'vue-i18n';
import { useRoute } from 'vue-router';
@ -10,7 +10,6 @@ import VnInput from 'src/components/common/VnInput.vue';
import VnSelect from 'src/components/common/VnSelect.vue';
import VnSelectVies from 'src/components/common/VnSelectVies.vue';
import VnLocation from 'src/components/common/VnLocation.vue';
import axios from 'axios';
const { t } = useI18n();
const route = useRoute();
@ -108,14 +107,7 @@ function handleLocation(data, location) {
</VnRow>
<VnRow>
<QCheckbox :label="t('Has to invoice')" v-model="data.hasToInvoice" />
<div>
<QCheckbox :label="t('Vies')" v-model="data.isVies" />
<QIcon name="info" class="cursor-info q-ml-sm" size="sm">
<QTooltip>
{{ t('whenActivatingIt') }}
</QTooltip>
</QIcon>
</div>
<QCheckbox :label="t('Verified data')" v-model="data.isTaxDataChecked" />
</VnRow>
<VnRow>
@ -145,9 +137,6 @@ function handleLocation(data, location) {
<QCheckbox
:label="t('Electronic invoice')"
v-model="data.hasElectronicInvoice"
/><QCheckbox
:label="t('Verified data')"
v-model="data.isTaxDataChecked"
/>
</VnRow>
</template>
@ -175,11 +164,9 @@ es:
Incoterms authorization: Autorización incoterms
Electronic invoice: Factura electrónica
onlyLetters: Sólo se pueden usar letras, números y espacios
whenActivatingIt: Al activarlo, no informar el código del país en el campo nif
inOrderToInvoice: Para facturar no se consulta este campo, sino el RE de consignatario. Al modificar este campo si no esta marcada la casilla Facturar por consignatario, se propagará automaticamente el cambio a todos lo consignatarios, en caso contrario preguntará al usuario si quiere o no propagar
Daily invoice: Facturación diaria
en:
onlyLetters: Only letters, numbers and spaces can be used
whenActivatingIt: When activating it, do not enter the country code in the ID field
inOrderToInvoice: In order to invoice, this field is not contulted, but the consignee's ET. When modifiying this field if the invoice by address option is not checked, the change will be automatically propagated to all addresses, otherwise the user will be asked if he wants to propagate it or not
</i18n>

View File

@ -9,6 +9,7 @@ import VnRow from 'components/ui/VnRow.vue';
import VnInput from 'src/components/common/VnInput.vue';
import VnSelect from 'src/components/common/VnSelect.vue';
import VnLocation from 'src/components/common/VnLocation.vue';
import VnSelectVies from 'src/components/common/VnSelectVies.vue';
const route = useRoute();
const { t } = useI18n();
@ -67,6 +68,7 @@ function handleLocation(data, location) {
'supplierActivityFk',
'healthRegister',
'street',
'viesCode',
],
include: [
{
@ -170,8 +172,8 @@ function handleLocation(data, location) {
country: data.country,
}"
@update:model-value="(location) => handleLocation(data, location)"
>
</VnLocation>
/>
<VnSelectVies v-model="data.viesCode" style="max-width: 30%" />
</VnRow>
<VnRow>
<div class="col flex justify-around">
@ -179,28 +181,8 @@ function handleLocation(data, location) {
v-model="data.isTrucker"
:label="t('supplier.fiscalData.isTrucker')"
/>
<div class="row items-center">
<QCheckbox
v-model="data.isVies"
:label="t('supplier.fiscalData.isVies')"
/>
<QIcon name="info" size="xs" class="cursor-pointer q-ml-sm">
<QTooltip>
{{
t(
'When activating it, do not enter the country code in the ID field.'
)
}}
</QTooltip>
</QIcon>
</div>
</div>
</VnRow>
</template>
</FormModel>
</template>
<i18n>
es:
When activating it, do not enter the country code in the ID field.: Al activarlo, no informar el código del país en el campo nif
</i18n>