From 57c538c9c95b23efc2467c658ab4cd69073fc165 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 10 Jan 2025 10:49:07 +0100 Subject: [PATCH] fix: refs #8225 invoice in translations --- .../InvoiceIn/Card/InvoiceInDescriptor.vue | 28 --------------- .../Card/InvoiceInDescriptorMenu.vue | 36 +++++++++++-------- src/pages/InvoiceIn/locale/en.yml | 24 ++++++++++++- src/pages/InvoiceIn/locale/es.yml | 24 ++++++++++++- 4 files changed, 67 insertions(+), 45 deletions(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue index e6b506844..89b1f9e7e 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue @@ -308,31 +308,3 @@ const createInvoiceInCorrection = async () => { } } - -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? - diff --git a/src/pages/InvoiceIn/Card/InvoiceInDescriptorMenu.vue b/src/pages/InvoiceIn/Card/InvoiceInDescriptorMenu.vue index 237b65979..8c715c795 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInDescriptorMenu.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInDescriptorMenu.vue @@ -33,15 +33,15 @@ const entityId = computed(() => $props.invoice.id || +currentRoute.value.params. const invoiceIn = computed(() => arrayData.store.data); const actions = { unbook: { - title: t('assertAction', { action: t('unbook') }), + title: t('assertAction', { action: t('InvoiceIn.descriptorMenu.unbook') }), action: toUnbook, }, delete: { - title: t('assertAction', { action: t('delete') }), + title: t('assertAction', { action: t('InvoiceIn.descriptorMenu.delete') }), action: deleteInvoice, }, clone: { - title: t('assertAction', { action: t('clone') }), + title: t('assertAction', { action: t('InvoiceIn.descriptorMenu.clone') }), action: cloneInvoice, }, showPdf: { cb: showPdfInvoice }, @@ -73,8 +73,8 @@ async function toUnbook() { const type = isLinked ? 'warning' : 'positive'; const message = isLinked - ? t('isLinked', { bookEntry, accountingEntries }) - : t('isNotLinked', { bookEntry }); + ? t('InvoiceIn.descriptorMenu.isLinked', { bookEntry, accountingEntries }) + : t('InvoiceIn.descriptorMenu.isNotLinked', { bookEntry }); quasar.notify({ type, message }); if (!isLinked) arrayData.store.data.isBooked = false; @@ -84,7 +84,7 @@ async function deleteInvoice() { await axios.delete(`InvoiceIns/${entityId.value}`); quasar.notify({ type: 'positive', - message: t('Invoice deleted'), + message: t('InvoiceIn.descriptorMenu.invoiceDeleted'), }); push({ path: '/invoice-in' }); } @@ -93,7 +93,7 @@ async function cloneInvoice() { const { data } = await axios.post(`InvoiceIns/${entityId.value}/clone`); quasar.notify({ type: 'positive', - message: t('Invoice cloned'), + message: t('InvoiceIn.descriptorMenu.invoiceCloned'), }); push({ path: `/invoice-in/${data.id}/summary` }); } @@ -144,7 +144,7 @@ function sendPdfInvoice({ address }) { clickable @click="book(entityId)" > - {{ t('To book') }} + {{ t('InvoiceIn.descriptorMenu.toBook') }} @@ -155,25 +155,29 @@ function sendPdfInvoice({ address }) { @click="triggerMenu('unbook')" > - {{ t('To unbook') }} + {{ t('InvoiceIn.descriptorMenu.toUnbook') }} - {{ t('Delete invoice') }} + {{ t('InvoiceIn.descriptorMenu.deleteInvoice') }} - {{ t('Clone invoice') }} + {{ t('InvoiceIn.descriptorMenu.cloneInvoice') }} - {{ t('Show agricultural receipt as PDF') }} + {{ + t('InvoiceIn.descriptorMenu.showAgriculturalPdf') + }} - {{ t('Send agricultural receipt as PDF') }}... + {{ t('InvoiceIn.descriptorMenu.sendAgriculturalPdf') }}... - {{ t('Create rectificative invoice') }}... + {{ t('InvoiceIn.descriptorMenu.createRectificative') }}... {{ t('components.smartCard.downloadFile') }} diff --git a/src/pages/InvoiceIn/locale/en.yml b/src/pages/InvoiceIn/locale/en.yml index 3723a0f05..1ac9c46e9 100644 --- a/src/pages/InvoiceIn/locale/en.yml +++ b/src/pages/InvoiceIn/locale/en.yml @@ -12,6 +12,29 @@ InvoiceIn: amount: Amount descriptor: 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: client: Client company: Company @@ -50,4 +73,3 @@ invoicein: params: account: Ledger account correctingFk: Rectificative - \ No newline at end of file diff --git a/src/pages/InvoiceIn/locale/es.yml b/src/pages/InvoiceIn/locale/es.yml index 5637605f6..9ffe09aa5 100644 --- a/src/pages/InvoiceIn/locale/es.yml +++ b/src/pages/InvoiceIn/locale/es.yml @@ -12,6 +12,29 @@ InvoiceIn: amount: Importe descriptor: 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: client: Cliente company: Empresa @@ -47,4 +70,3 @@ invoicein: params: account: Cuenta contable correctingFk: Rectificativa -