#8448 - devToTest #1254
|
@ -308,31 +308,3 @@ const createInvoiceInCorrection = async () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<i18n>
|
|
||||||
en:
|
|
||||||
isNotLinked: The entry {bookEntry} has been deleted with {accountingEntries} entries
|
|
||||||
isLinked: The entry {bookEntry} has been linked to Sage. Please contact administration for further information
|
|
||||||
assertAction: Are you sure you want to {action} this invoice?
|
|
||||||
es:
|
|
||||||
book: asentar
|
|
||||||
unbook: desasentar
|
|
||||||
delete: eliminar
|
|
||||||
clone: clonar
|
|
||||||
To book: Contabilizar
|
|
||||||
To unbook: Descontabilizar
|
|
||||||
Delete invoice: Eliminar factura
|
|
||||||
Invoice deleted: Factura eliminada
|
|
||||||
Clone invoice: Clonar factura
|
|
||||||
Invoice cloned: Factura clonada
|
|
||||||
Show agricultural receipt as PDF: Ver recibo agrícola como PDF
|
|
||||||
Send agricultural receipt as PDF: Enviar recibo agrícola como PDF
|
|
||||||
Are you sure you want to send it?: Estás seguro que quieres enviarlo?
|
|
||||||
Send PDF invoice: Enviar factura a PDF
|
|
||||||
Create rectificative invoice: Crear factura rectificativa
|
|
||||||
Rectificative invoice: Factura rectificativa
|
|
||||||
Original invoice: Factura origen
|
|
||||||
Entry: entrada
|
|
||||||
isNotLinked: Se ha eliminado el asiento nº {bookEntry} con {accountingEntries} apuntes
|
|
||||||
isLinked: El asiento {bookEntry} fue enlazado a Sage, por favor contacta con administración
|
|
||||||
assertAction: Estas seguro de querer {action} esta factura?
|
|
||||||
</i18n>
|
|
||||||
|
|
|
@ -33,15 +33,15 @@ const entityId = computed(() => $props.invoice.id || +currentRoute.value.params.
|
||||||
const invoiceIn = computed(() => arrayData.store.data);
|
const invoiceIn = computed(() => arrayData.store.data);
|
||||||
const actions = {
|
const actions = {
|
||||||
unbook: {
|
unbook: {
|
||||||
title: t('assertAction', { action: t('unbook') }),
|
title: t('assertAction', { action: t('InvoiceIn.descriptorMenu.unbook') }),
|
||||||
action: toUnbook,
|
action: toUnbook,
|
||||||
},
|
},
|
||||||
delete: {
|
delete: {
|
||||||
title: t('assertAction', { action: t('delete') }),
|
title: t('assertAction', { action: t('InvoiceIn.descriptorMenu.delete') }),
|
||||||
action: deleteInvoice,
|
action: deleteInvoice,
|
||||||
},
|
},
|
||||||
clone: {
|
clone: {
|
||||||
title: t('assertAction', { action: t('clone') }),
|
title: t('assertAction', { action: t('InvoiceIn.descriptorMenu.clone') }),
|
||||||
action: cloneInvoice,
|
action: cloneInvoice,
|
||||||
},
|
},
|
||||||
showPdf: { cb: showPdfInvoice },
|
showPdf: { cb: showPdfInvoice },
|
||||||
|
@ -73,8 +73,8 @@ async function toUnbook() {
|
||||||
|
|
||||||
const type = isLinked ? 'warning' : 'positive';
|
const type = isLinked ? 'warning' : 'positive';
|
||||||
const message = isLinked
|
const message = isLinked
|
||||||
? t('isLinked', { bookEntry, accountingEntries })
|
? t('InvoiceIn.descriptorMenu.isLinked', { bookEntry, accountingEntries })
|
||||||
: t('isNotLinked', { bookEntry });
|
: t('InvoiceIn.descriptorMenu.isNotLinked', { bookEntry });
|
||||||
|
|
||||||
quasar.notify({ type, message });
|
quasar.notify({ type, message });
|
||||||
if (!isLinked) arrayData.store.data.isBooked = false;
|
if (!isLinked) arrayData.store.data.isBooked = false;
|
||||||
|
@ -84,7 +84,7 @@ async function deleteInvoice() {
|
||||||
await axios.delete(`InvoiceIns/${entityId.value}`);
|
await axios.delete(`InvoiceIns/${entityId.value}`);
|
||||||
quasar.notify({
|
quasar.notify({
|
||||||
type: 'positive',
|
type: 'positive',
|
||||||
message: t('Invoice deleted'),
|
message: t('InvoiceIn.descriptorMenu.invoiceDeleted'),
|
||||||
});
|
});
|
||||||
push({ path: '/invoice-in' });
|
push({ path: '/invoice-in' });
|
||||||
}
|
}
|
||||||
|
@ -93,7 +93,7 @@ async function cloneInvoice() {
|
||||||
const { data } = await axios.post(`InvoiceIns/${entityId.value}/clone`);
|
const { data } = await axios.post(`InvoiceIns/${entityId.value}/clone`);
|
||||||
quasar.notify({
|
quasar.notify({
|
||||||
type: 'positive',
|
type: 'positive',
|
||||||
message: t('Invoice cloned'),
|
message: t('InvoiceIn.descriptorMenu.invoiceCloned'),
|
||||||
});
|
});
|
||||||
push({ path: `/invoice-in/${data.id}/summary` });
|
push({ path: `/invoice-in/${data.id}/summary` });
|
||||||
}
|
}
|
||||||
|
@ -144,7 +144,7 @@ function sendPdfInvoice({ address }) {
|
||||||
clickable
|
clickable
|
||||||
@click="book(entityId)"
|
@click="book(entityId)"
|
||||||
>
|
>
|
||||||
<QItemSection>{{ t('To book') }}</QItemSection>
|
<QItemSection>{{ t('InvoiceIn.descriptorMenu.toBook') }}</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
</template>
|
</template>
|
||||||
</InvoiceInToBook>
|
</InvoiceInToBook>
|
||||||
|
@ -155,25 +155,29 @@ function sendPdfInvoice({ address }) {
|
||||||
@click="triggerMenu('unbook')"
|
@click="triggerMenu('unbook')"
|
||||||
>
|
>
|
||||||
<QItemSection>
|
<QItemSection>
|
||||||
{{ t('To unbook') }}
|
{{ t('InvoiceIn.descriptorMenu.toUnbook') }}
|
||||||
</QItemSection>
|
</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem
|
<QItem
|
||||||
v-if="canEditProp('deleteById')"
|
v-if="canEditProp('deleteById')"
|
||||||
v-ripple
|
v-ripple
|
||||||
clickable
|
clickable
|
||||||
@click="triggerMenu('delete')"
|
@click="triggerMenu('InvoiceIn.descriptorMenu.delete')"
|
||||||
>
|
>
|
||||||
<QItemSection>{{ t('Delete invoice') }}</QItemSection>
|
<QItemSection>{{ t('InvoiceIn.descriptorMenu.deleteInvoice') }}</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem v-if="canEditProp('clone')" v-ripple clickable @click="triggerMenu('clone')">
|
<QItem v-if="canEditProp('clone')" v-ripple clickable @click="triggerMenu('clone')">
|
||||||
<QItemSection>{{ t('Clone invoice') }}</QItemSection>
|
<QItemSection>{{ t('InvoiceIn.descriptorMenu.cloneInvoice') }}</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem v-if="isAgricultural()" v-ripple clickable @click="triggerMenu('showPdf')">
|
<QItem v-if="isAgricultural()" v-ripple clickable @click="triggerMenu('showPdf')">
|
||||||
<QItemSection>{{ t('Show agricultural receipt as PDF') }}</QItemSection>
|
<QItemSection>{{
|
||||||
|
t('InvoiceIn.descriptorMenu.showAgriculturalPdf')
|
||||||
|
}}</QItemSection>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem v-if="isAgricultural()" v-ripple clickable @click="triggerMenu('sendPdf')">
|
<QItem v-if="isAgricultural()" v-ripple clickable @click="triggerMenu('sendPdf')">
|
||||||
<QItemSection>{{ t('Send agricultural receipt as PDF') }}...</QItemSection>
|
<QItemSection
|
||||||
|
>{{ t('InvoiceIn.descriptorMenu.sendAgriculturalPdf') }}...</QItemSection
|
||||||
|
>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem
|
<QItem
|
||||||
v-if="!invoiceInCorrection.corrected"
|
v-if="!invoiceInCorrection.corrected"
|
||||||
|
@ -181,7 +185,9 @@ function sendPdfInvoice({ address }) {
|
||||||
clickable
|
clickable
|
||||||
@click="triggerMenu('correct')"
|
@click="triggerMenu('correct')"
|
||||||
>
|
>
|
||||||
<QItemSection>{{ t('Create rectificative invoice') }}...</QItemSection>
|
<QItemSection
|
||||||
|
>{{ t('InvoiceIn.descriptorMenu.createRectificative') }}...</QItemSection
|
||||||
|
>
|
||||||
</QItem>
|
</QItem>
|
||||||
<QItem v-if="invoice.dmsFk" v-ripple clickable @click="downloadFile(invoice.dmsFk)">
|
<QItem v-if="invoice.dmsFk" v-ripple clickable @click="downloadFile(invoice.dmsFk)">
|
||||||
<QItemSection>{{ t('components.smartCard.downloadFile') }}</QItemSection>
|
<QItemSection>{{ t('components.smartCard.downloadFile') }}</QItemSection>
|
||||||
|
|
|
@ -12,6 +12,29 @@ InvoiceIn:
|
||||||
amount: Amount
|
amount: Amount
|
||||||
descriptor:
|
descriptor:
|
||||||
ticketList: Ticket list
|
ticketList: Ticket list
|
||||||
|
descriptorMenu:
|
||||||
|
book: Book
|
||||||
|
unbook: Unbook
|
||||||
|
delete: Delete
|
||||||
|
clone: Clone
|
||||||
|
toBook: To book
|
||||||
|
toUnbook: To unbook
|
||||||
|
deleteInvoice: Delete invoice
|
||||||
|
invoiceDeleted: invoice deleted
|
||||||
|
cloneInvoice: Clone invoice
|
||||||
|
invoiceCloned: Invoice cloned
|
||||||
|
showAgriculturalPdf: Show agricultural receipt as PDF
|
||||||
|
sendAgriculturalPdf: Send agricultural receipt as PDF
|
||||||
|
checkSendInvoice: Are you sure you want to send it?
|
||||||
|
sendPdfInvoice: Send PDF invoice
|
||||||
|
createRectificative: Create rectificative invoice
|
||||||
|
rectificativeInvoice: Rectificative invoice
|
||||||
|
originalInvoice: Original invoice
|
||||||
|
entry: Entry
|
||||||
|
isNotLinked: The entry {bookEntry} has been deleted with {accountingEntries} entries
|
||||||
|
isLinked: The entry {bookEntry} has been linked to Sage. Please contact administration for further information
|
||||||
|
assertAction: Are you sure you want to {action} this invoice?
|
||||||
|
emailEmpty: The email can't be empty
|
||||||
card:
|
card:
|
||||||
client: Client
|
client: Client
|
||||||
company: Company
|
company: Company
|
||||||
|
@ -50,4 +73,3 @@ invoicein:
|
||||||
params:
|
params:
|
||||||
account: Ledger account
|
account: Ledger account
|
||||||
correctingFk: Rectificative
|
correctingFk: Rectificative
|
||||||
|
|
|
@ -12,6 +12,29 @@ InvoiceIn:
|
||||||
amount: Importe
|
amount: Importe
|
||||||
descriptor:
|
descriptor:
|
||||||
ticketList: Listado de tickets
|
ticketList: Listado de tickets
|
||||||
|
descriptorMenu:
|
||||||
|
book: Asentar
|
||||||
|
unbook: Desasentar
|
||||||
|
delete: Eliminar
|
||||||
|
clone: Clonar
|
||||||
|
toBook: Contabilizar
|
||||||
|
toUnbook: Descontabilizar
|
||||||
|
deleteInvoice: Eliminar factura
|
||||||
|
invoiceDeleted: Factura eliminada
|
||||||
|
cloneInvoice: Clonar factura
|
||||||
|
invoiceCloned: Factura clonada
|
||||||
|
showAgriculturalPdf: Ver recibo agrícola como PDF
|
||||||
|
sendAgriculturalPdf: Enviar recibo agrícola como PDF
|
||||||
|
checkSendInvoice: ¿Estás seguro que quieres enviarlo?
|
||||||
|
sendPdfInvoice: Enviar factura a PDF
|
||||||
|
createRectificative: Crear factura rectificativa
|
||||||
|
rectificativeInvoice: Factura rectificativa
|
||||||
|
originalInvoice: Factura origen
|
||||||
|
entry: Entrada
|
||||||
|
isNotLinked: Se ha eliminado el asiento nº {bookEntry} con {accountingEntries} apuntes
|
||||||
|
isLinked: El asiento {bookEntry} fue enlazado a Sage, por favor contacta con administración
|
||||||
|
assertAction: Estas seguro de querer {action} esta factura?
|
||||||
|
emailEmpty: El email no puede estar vacío
|
||||||
card:
|
card:
|
||||||
client: Cliente
|
client: Cliente
|
||||||
company: Empresa
|
company: Empresa
|
||||||
|
@ -47,4 +70,3 @@ invoicein:
|
||||||
params:
|
params:
|
||||||
account: Cuenta contable
|
account: Cuenta contable
|
||||||
correctingFk: Rectificativa
|
correctingFk: Rectificativa
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue