Correccion de comentarios
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
carlosfonseca 2024-02-08 13:25:44 -05:00
parent fcdcfd9e97
commit 7f1c4690e8
20 changed files with 153 additions and 39 deletions

View File

@ -66,10 +66,11 @@ const filterOptions = {
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput <VnInput
v-model="data.socialName"
:label="t('customer.basicData.socialName')" :label="t('customer.basicData.socialName')"
:rules="validate('client.socialName')" :rules="validate('client.socialName')"
autofocus autofocus
clearable
v-model="data.socialName"
/> />
</div> </div>
<div class="col"> <div class="col">
@ -89,37 +90,37 @@ const filterOptions = {
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput <VnInput
v-model="data.contact"
:label="t('customer.basicData.contact')" :label="t('customer.basicData.contact')"
:rules="validate('client.contact')" :rules="validate('client.contact')"
clearable clearable
v-model="data.contact"
/> />
</div> </div>
<div class="col"> <div class="col">
<VnInput <VnInput
v-model="data.email"
type="email"
:label="t('customer.basicData.email')" :label="t('customer.basicData.email')"
:rules="validate('client.email')" :rules="validate('client.email')"
clearable clearable
type="email"
v-model="data.email"
/> />
</div> </div>
</VnRow> </VnRow>
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput <VnInput
v-model="data.phone"
:label="t('customer.basicData.phone')" :label="t('customer.basicData.phone')"
:rules="validate('client.phone')" :rules="validate('client.phone')"
clearable clearable
v-model="data.phone"
/> />
</div> </div>
<div class="col"> <div class="col">
<VnInput <VnInput
v-model="data.mobile"
:label="t('customer.basicData.mobile')" :label="t('customer.basicData.mobile')"
:rules="validate('client.mobile')" :rules="validate('client.mobile')"
clearable clearable
v-model="data.mobile"
/> />
</div> </div>
</VnRow> </VnRow>

View File

@ -61,6 +61,7 @@ const getBankEntities = () => {
<VnInput <VnInput
:label="t('Due day')" :label="t('Due day')"
:rules="validate('client.socialName')" :rules="validate('client.socialName')"
clearable
v-model="data.dueDay" v-model="data.dueDay"
/> />
</div> </div>
@ -68,7 +69,7 @@ const getBankEntities = () => {
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('IBAN')" v-model="data.iban"> <VnInput :label="t('IBAN')" clearable v-model="data.iban">
<template #append> <template #append>
<QIcon name="info" class="cursor-info"> <QIcon name="info" class="cursor-info">
<QTooltip>{{ t('components.iban_tooltip') }}</QTooltip> <QTooltip>{{ t('components.iban_tooltip') }}</QTooltip>

View File

@ -82,11 +82,11 @@ const onSubmit = async () => {
v-for="(note, index) in notes" v-for="(note, index) in notes"
> >
<div class="col"> <div class="col">
<VnInput :label="t('Name')" v-model="note.name" /> <VnInput :label="t('Name')" clearable v-model="note.name" />
</div> </div>
<div class="col"> <div class="col">
<VnInput :label="t('Phone')" v-model="note.phone" /> <VnInput :label="t('Phone')" clearable v-model="note.phone" />
</div> </div>
<div class="flex items-center"> <div class="flex items-center">

View File

@ -52,6 +52,7 @@ const initialData = reactive({
<div class="col"> <div class="col">
<VnInput <VnInput
:label="t('Rating')" :label="t('Rating')"
clearable
type="number" type="number"
v-model.number="data.rating" v-model.number="data.rating"
/> />
@ -59,6 +60,7 @@ const initialData = reactive({
<div class="col"> <div class="col">
<VnInput <VnInput
:label="t('Recommended credit')" :label="t('Recommended credit')"
clearable
type="number" type="number"
v-model.number="data.recommendedCredit" v-model.number="data.recommendedCredit"
/> />

View File

@ -75,17 +75,26 @@ const onPostcodeCreated = async ({ code, provinceFk, townFk, countryFk }, formDa
:label="t('Social name')" :label="t('Social name')"
:required="true" :required="true"
:rules="validate('client.socialName')" :rules="validate('client.socialName')"
clearable
v-model="data.socialName" v-model="data.socialName"
/> >
<template #append>
<QIcon name="info" class="cursor-info">
<QTooltip>{{
t('Only letters, numbers and spaces can be used')
}}</QTooltip>
</QIcon>
</template>
</VnInput>
</div> </div>
<div class="col"> <div class="col">
<VnInput :label="t('Tax number')" v-model="data.fi" /> <VnInput :label="t('Tax number')" clearable v-model="data.fi" />
</div> </div>
</VnRow> </VnRow>
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('Street')" v-model="data.street" /> <VnInput :label="t('Street')" clearable v-model="data.street" />
</div> </div>
</VnRow> </VnRow>
@ -220,6 +229,15 @@ const onPostcodeCreated = async ({ code, provinceFk, townFk, countryFk }, formDa
</div> </div>
<div class="col"> <div class="col">
<QCheckbox :label="t('Vies')" v-model="data.isVies" /> <QCheckbox :label="t('Vies')" v-model="data.isVies" />
<QIcon name="info" class="cursor-info q-ml-sm" size="sm">
<QTooltip>
{{
t(
'When activating it, do not enter the country code in the ID field'
)
}}
</QTooltip>
</QIcon>
</div> </div>
</VnRow> </VnRow>
@ -244,6 +262,15 @@ const onPostcodeCreated = async ({ code, provinceFk, townFk, countryFk }, formDa
:label="t('Is equalizated')" :label="t('Is equalizated')"
v-model="data.isEqualizated" v-model="data.isEqualizated"
/> />
<QIcon class="cursor-info q-ml-sm" name="info" size="sm">
<QTooltip>
{{
t(
"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"
)
}}
</QTooltip>
</QIcon>
</div> </div>
<div class="col"> <div class="col">
<QCheckbox <QCheckbox
@ -274,6 +301,7 @@ const onPostcodeCreated = async ({ code, provinceFk, townFk, countryFk }, formDa
<i18n> <i18n>
es: es:
Social name: Razón social Social name: Razón social
Only letters, numbers and spaces can be used: Sólo se pueden usar letras, números y espacios
Tax number: NIF / CIF Tax number: NIF / CIF
Street: Dirección fiscal Street: Dirección fiscal
Sage tax type: Tipo de impuesto Sage Sage tax type: Tipo de impuesto Sage
@ -286,9 +314,11 @@ es:
Frozen: Congelado Frozen: Congelado
Has to invoice: Factura Has to invoice: Factura
Vies: Vies Vies: Vies
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.
Notify by email: Notificar vía e-mail Notify by email: Notificar vía e-mail
Invoice by address: Facturar por consignatario Invoice by address: Facturar por consignatario
Is equalizated: Recargo de equivalencia Is equalizated: Recargo de equivalencia
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: 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.
Verified data: Datos comprobados Verified data: Datos comprobados
Incoterms authorization: Autorización incoterms Incoterms authorization: Autorización incoterms
Electronic invoice: Factura electrónica Electronic invoice: Factura electrónica

View File

@ -130,7 +130,7 @@ const setInq = (value, status) => {
<QDrawer :width="256" show-if-above side="right" v-model="stateStore.rightDrawer"> <QDrawer :width="256" show-if-above side="right" v-model="stateStore.rightDrawer">
<div class="q-mt-sm q-px-md"> <div class="q-mt-sm q-px-md">
<VnInput :label="t('Search')"> <VnInput :label="t('Search')" clearable>
<template #append> <template #append>
<QIcon name="info" class="cursor-pointer"> <QIcon name="info" class="cursor-pointer">
<QTooltip> <QTooltip>
@ -187,7 +187,7 @@ const setInq = (value, status) => {
option-label="name" option-label="name"
option-value="id" option-value="id"
/> />
<VnInput :label="t('Changes')" class="q-mt-sm"> <VnInput :label="t('Changes')" clearable class="q-mt-sm">
<template #append> <template #append>
<QIcon name="info" class="cursor-pointer"> <QIcon name="info" class="cursor-pointer">
<QTooltip> <QTooltip>
@ -227,7 +227,7 @@ const setInq = (value, status) => {
</div> </div>
<VnInputDate :label="t('Date')" class="q-mt-sm" /> <VnInputDate :label="t('Date')" class="q-mt-sm" />
<VnInput :label="t('To')" class="q-mt-md" /> <VnInput :label="t('To')" clearable class="q-mt-md" />
</div> </div>
</QDrawer> </QDrawer>

View File

@ -42,7 +42,12 @@ const onFetch = () => {
<VnInputDate :label="t('Date')" v-model="data.dated" /> <VnInputDate :label="t('Date')" v-model="data.dated" />
</div> </div>
<div class="col"> <div class="col">
<VnInput :label="t('Amount')" type="number" v-model="data.amount" /> <VnInput
:label="t('Amount')"
clearable
type="number"
v-model="data.amount"
/>
</div> </div>
</VnRow> </VnRow>
</template> </template>

View File

@ -40,10 +40,14 @@ const filter = { where: { id: `${route.params.id}` } };
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('User')" v-model="item.name" /> <VnInput :label="t('User')" clearable v-model="item.name" />
</div> </div>
<div class="col"> <div class="col">
<VnInput :label="t('Recovery email')" v-model="item.email"> <VnInput
:label="t('Recovery email')"
clearable
v-model="item.email"
>
<template #append> <template #append>
<QIcon name="info" class="cursor-pointer"> <QIcon name="info" class="cursor-pointer">
<QTooltip>{{ <QTooltip>{{

View File

@ -119,6 +119,7 @@ const authors = ref();
<QItemSection> <QItemSection>
<VnInput <VnInput
:label="t('P. Method')" :label="t('P. Method')"
clearable
is-outlined is-outlined
v-model="params.paymentMethod" v-model="params.paymentMethod"
/> />
@ -129,6 +130,7 @@ const authors = ref();
<QItemSection> <QItemSection>
<VnInput <VnInput
:label="t('Balance D.')" :label="t('Balance D.')"
clearable
is-outlined is-outlined
v-model="params.balance" v-model="params.balance"
/> />
@ -160,7 +162,12 @@ const authors = ref();
<QItem class="q-mb-sm"> <QItem class="q-mb-sm">
<QItemSection> <QItemSection>
<VnInput :label="t('L. O. Date')" is-outlined v-model="params.date" /> <VnInput
:label="t('L. O. Date')"
clearable
is-outlined
v-model="params.date"
/>
</QItemSection> </QItemSection>
</QItem> </QItem>
@ -168,6 +175,7 @@ const authors = ref();
<QItemSection> <QItemSection>
<VnInput <VnInput
:label="t('Credit I.')" :label="t('Credit I.')"
clearable
is-outlined is-outlined
v-model="params.credit" v-model="params.credit"
/> />

View File

@ -40,6 +40,7 @@ const clients = ref();
<QItemSection> <QItemSection>
<VnInput <VnInput
:label="t('Identifier')" :label="t('Identifier')"
clearable
is-outlined is-outlined
v-model="params.identifier" v-model="params.identifier"
/> />
@ -96,13 +97,23 @@ const clients = ref();
<QItem class="q-mb-sm"> <QItem class="q-mb-sm">
<QItemSection> <QItemSection>
<VnInput :label="t('Phone')" is-outlined v-model="params.phone" /> <VnInput
:label="t('Phone')"
clearable
is-outlined
v-model="params.phone"
/>
</QItemSection> </QItemSection>
</QItem> </QItem>
<QItem class="q-mb-sm"> <QItem class="q-mb-sm">
<QItemSection> <QItemSection>
<VnInput :label="t('Email')" is-outlined v-model="params.email" /> <VnInput
:label="t('Email')"
clearable
is-outlined
v-model="params.email"
/>
</QItemSection> </QItemSection>
</QItem> </QItem>
<QSeparator /> <QSeparator />

View File

@ -104,10 +104,14 @@ const toCustomerConsignees = () => {
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('Consignee')" v-model="data.nickname" /> <VnInput :label="t('Consignee')" clearable v-model="data.nickname" />
</div> </div>
<div class="col"> <div class="col">
<VnInput :label="t('Street address')" v-model="data.street" /> <VnInput
:label="t('Street address')"
clearable
v-model="data.street"
/>
</div> </div>
</VnRow> </VnRow>
@ -204,10 +208,10 @@ const toCustomerConsignees = () => {
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('Phone')" v-model="data.phone" /> <VnInput :label="t('Phone')" clearable v-model="data.phone" />
</div> </div>
<div class="col"> <div class="col">
<VnInput :label="t('Mobile')" v-model="data.mobile" /> <VnInput :label="t('Mobile')" clearable v-model="data.mobile" />
</div> </div>
</VnRow> </VnRow>

View File

@ -159,10 +159,14 @@ const onDataSaved = () => {
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('Consignee')" v-model="data.nickname" /> <VnInput :label="t('Consignee')" clearable v-model="data.nickname" />
</div> </div>
<div class="col"> <div class="col">
<VnInput :label="t('Street address')" v-model="data.street" /> <VnInput
:label="t('Street address')"
clearable
v-model="data.street"
/>
</div> </div>
</VnRow> </VnRow>
@ -259,10 +263,10 @@ const onDataSaved = () => {
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('Phone')" v-model="data.phone" /> <VnInput :label="t('Phone')" clearable v-model="data.phone" />
</div> </div>
<div class="col"> <div class="col">
<VnInput :label="t('Mobile')" v-model="data.mobile" /> <VnInput :label="t('Mobile')" clearable v-model="data.mobile" />
</div> </div>
</VnRow> </VnRow>
@ -310,7 +314,11 @@ const onDataSaved = () => {
/> />
</div> </div>
<div class="col"> <div class="col">
<VnInput :label="t('Description')" v-model="note.description" /> <VnInput
:label="t('Description')"
clearable
v-model="note.description"
/>
</div> </div>
<div class="flex items-center"> <div class="flex items-center">
<QIcon <QIcon

View File

@ -34,6 +34,7 @@ const onDataSaved = () => {
<div class="col"> <div class="col">
<VnInput <VnInput
:label="t('Credit')" :label="t('Credit')"
clearable
type="number" type="number"
v-model.number="data.credit" v-model.number="data.credit"
/> />
@ -41,6 +42,7 @@ const onDataSaved = () => {
<div class="col"> <div class="col">
<VnInput <VnInput
:label="t('Grade')" :label="t('Grade')"
clearable
type="number" type="number"
v-model.number="data.grade" v-model.number="data.grade"
/> />

View File

@ -115,7 +115,11 @@ const inputFileRef = ref();
<QCardSection> <QCardSection>
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('Reference')" v-model="dms.reference" /> <VnInput
:label="t('Reference')"
clearable
v-model="dms.reference"
/>
</div> </div>
<div class="col"> <div class="col">
<VnSelectFilter <VnSelectFilter
@ -153,6 +157,7 @@ const inputFileRef = ref();
<div class="col"> <div class="col">
<VnInput <VnInput
:label="t('Description')" :label="t('Description')"
clearable
type="textarea" type="textarea"
v-model="dms.description" v-model="dms.description"
/> />

View File

@ -93,7 +93,11 @@ const inputFileRef = ref();
<QCardSection> <QCardSection>
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('Reference')" v-model="dms.reference" /> <VnInput
:label="t('Reference')"
clearable
v-model="dms.reference"
/>
</div> </div>
<div class="col"> <div class="col">
<VnSelectFilter <VnSelectFilter
@ -131,6 +135,7 @@ const inputFileRef = ref();
<div class="col"> <div class="col">
<VnInput <VnInput
:label="t('Description')" :label="t('Description')"
clearable
type="textarea" type="textarea"
v-model="dms.description" v-model="dms.description"
/> />

View File

@ -50,7 +50,12 @@ const toCustomerGreuges = () => {
<template #form="{ data }"> <template #form="{ data }">
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('Amount')" type="number" v-model="data.amount" /> <VnInput
:label="t('Amount')"
clearable
type="number"
v-model="data.amount"
/>
</div> </div>
<div class="col"> <div class="col">
<VnInputDate :label="t('Date')" v-model="data.shipped" /> <VnInputDate :label="t('Date')" v-model="data.shipped" />
@ -59,7 +64,7 @@ const toCustomerGreuges = () => {
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('Comment')" v-model="data.description" /> <VnInput :label="t('Comment')" clearable v-model="data.description" />
</div> </div>
<div class="col"> <div class="col">
<VnSelectFilter <VnSelectFilter

View File

@ -33,22 +33,28 @@ const onDataSaved = (dataSaved) => {
<template #form-inputs="{ data }"> <template #form-inputs="{ data }">
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('NIF')" :required="true" v-model="data.nif" /> <VnInput
:label="t('NIF')"
:required="true"
clearable
v-model="data.nif"
/>
</div> </div>
<div class="col"> <div class="col">
<VnInput <VnInput
:label="t('Fiscal name')" :label="t('Fiscal name')"
:required="true" :required="true"
clearable
v-model="data.fiscalName" v-model="data.fiscalName"
/> />
</div> </div>
</VnRow> </VnRow>
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('Street')" v-model="data.street" /> <VnInput :label="t('Street')" clearable v-model="data.street" />
</div> </div>
<div class="col"> <div class="col">
<VnInput :label="t('Phone')" v-model="data.phone" /> <VnInput :label="t('Phone')" clearable v-model="data.phone" />
</div> </div>
</VnRow> </VnRow>
</template> </template>

View File

@ -189,6 +189,7 @@ const onDataSaved = async () => {
:label="t('Amount')" :label="t('Amount')"
:required="true" :required="true"
@update:model-value="calculateFromAmount($event)" @update:model-value="calculateFromAmount($event)"
clearable
type="number" type="number"
v-model.number="data.amountPaid" v-model.number="data.amountPaid"
/> />
@ -203,6 +204,7 @@ const onDataSaved = async () => {
<div class="col" v-if="data.bankFk === 3 || data.bankFk === 3117"> <div class="col" v-if="data.bankFk === 3 || data.bankFk === 3117">
<VnInput <VnInput
:label="t('Compensation account')" :label="t('Compensation account')"
clearable
v-model="data.compensationAccount" v-model="data.compensationAccount"
/> />
</div> </div>
@ -210,6 +212,7 @@ const onDataSaved = async () => {
<VnInput <VnInput
:label="t('Reference')" :label="t('Reference')"
:required="true" :required="true"
clearable
v-model="data.description" v-model="data.description"
/> />
</div> </div>
@ -223,6 +226,7 @@ const onDataSaved = async () => {
<VnInput <VnInput
:label="t('Delivered amount')" :label="t('Delivered amount')"
@update:model-value="calculateFromDeliveredAmount($event)" @update:model-value="calculateFromDeliveredAmount($event)"
clearable
type="number" type="number"
v-model="deliveredAmount" v-model="deliveredAmount"
/> />
@ -230,6 +234,7 @@ const onDataSaved = async () => {
<div class="col"> <div class="col">
<VnInput <VnInput
:label="t('Amount to return')" :label="t('Amount to return')"
clearable
disable disable
type="number" type="number"
v-model="amountToReturn" v-model="amountToReturn"

View File

@ -53,10 +53,20 @@ const toCustomerRecoveries = () => {
<VnRow class="row q-gutter-md q-mb-md"> <VnRow class="row q-gutter-md q-mb-md">
<div class="col"> <div class="col">
<VnInput :label="t('Amount')" type="number" v-model="data.amount" /> <VnInput
:label="t('Amount')"
clearable
type="number"
v-model="data.amount"
/>
</div> </div>
<div class="col"> <div class="col">
<VnInput :label="t('Period')" type="number" v-model="data.period" /> <VnInput
:label="t('Period')"
clearable
type="number"
v-model="data.period"
/>
</div> </div>
</VnRow> </VnRow>
</template> </template>

View File

@ -143,6 +143,7 @@ const onDataSaved = async ({
<div class="col"> <div class="col">
<VnInput <VnInput
:label="t('Recipient')" :label="t('Recipient')"
clearable
required="true" required="true"
v-model="data.recipient" v-model="data.recipient"
> >
@ -158,6 +159,7 @@ const onDataSaved = async ({
<div class="col"> <div class="col">
<VnInput <VnInput
:label="t('Reply to')" :label="t('Reply to')"
clearable
required="true" required="true"
v-model="data.replyTo" v-model="data.replyTo"
> >