From 95712728d6082f9c5180af558f508aa70bfe46d3 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 10 Jan 2025 10:00:42 +0100 Subject: [PATCH 1/9] feat: refs #8225 added moreOptions and use it in customer and ticket summary --- src/components/ui/CardDescriptor.vue | 31 +++++++-------------- src/components/ui/CardSummary.vue | 24 +++++++++------- src/components/ui/VnMoreOptions.vue | 20 +++++++++++++ src/pages/Customer/Card/CustomerSummary.vue | 9 ++++-- src/pages/Ticket/Card/TicketSummary.vue | 18 ++++-------- 5 files changed, 55 insertions(+), 47 deletions(-) create mode 100644 src/components/ui/VnMoreOptions.vue diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index f4c0091d2..4a79e562a 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -6,6 +6,7 @@ import { useArrayData } from 'composables/useArrayData'; import { useSummaryDialog } from 'src/composables/useSummaryDialog'; import { useState } from 'src/composables/useState'; import { useRoute } from 'vue-router'; +import VnMoreOptions from './VnMoreOptions.vue'; const $props = defineProps({ url: { @@ -159,25 +160,11 @@ const toModule = computed(() => - - - {{ t('components.cardDescriptor.moreOptions') }} - - - - - - - + + +
@@ -222,8 +209,8 @@ const toModule = computed(() => /> - + + +en: + addTurn: Add turn + invoiceIds: "Invoices have been generated with the following ids: {invoiceIds}" + +es: + Show Delivery Note...: Ver albarán... + Send Delivery Note...: Enviar albarán... + as PDF: como PDF + as PDF without prices: como PDF sin precios + as CSV: Como CSV + Send PDF: Enviar PDF + Send PDF to tablet: Enviar PDF a tablet + Send CSV: Enviar CSV + Show Proforma: Ver proforma + Delete ticket: Eliminar ticket + Send SMS...: Enviar SMS... + Pending payment: Pago pendiente + Minimum import: Importe mínimo + Notify changes: Notificar cambios + Ticket deleted: Ticket eliminado + You can undo this action within the first hour: Puedes deshacer esta acción dentro de la primera hora + To clone ticket: Clonar ticket + Ticket cloned: Ticked clonado + It was not able to clone the ticket: No se pudo clonar el ticket + Generate PDF invoice: Generar PDF factura + Regenerate PDF invoice: Regenerar PDF factura + The invoice PDF document has been regenerated: El documento PDF de la factura ha sido regenerado + Transfer client: Transferir cliente + Client: Cliente + addTurn: Añadir a turno + What is the day of receipt of the ticket?: ¿Cuál es el día de preparación del pedido? + Current ticket deleted and added to shift: Ticket actual eliminado y añadido al turno + Refund all...: Abonar todo... + with warehouse: con almacén + without warehouse: sin almacén + Make invoice: Crear factura + Change shipped hour: Cambiar hora de envío + Shipped hour: Hora de envío + Recalculate components: Recalcular componentes + Are you sure you want to recalculate components?: ¿Seguro que quieres recalcular los componentes? + Data saved: Datos guardados + Are you sure you want to invoice this ticket?: ¿Seguro que quieres facturar este ticket? + You are going to invoice this ticket: Vas a facturar este ticket + Ticket invoiced: Ticket facturado + Set weight: Establecer peso + Weight set: Peso establecido + This ticket may be invoiced, do you want to continue?: Es posible que se facture este ticket, desea continuar? + invoiceIds: "Se han generado las facturas con los siguientes ids: {invoiceIds}" + This ticket will be removed from current route! Continue anyway?: ¡Se eliminará el ticket de la ruta actual! ¿Continuar de todas formas? + You are going to delete this ticket: Vas a eliminar este ticket + as PDF signed: como PDF firmado + Are you sure you want to replace this delivery note?: ¿Seguro que quieres reemplazar este albarán? + diff --git a/src/pages/Item/Card/ItemSummary.vue b/src/pages/Item/Card/ItemSummary.vue index e1b97d7c9..bc828bbf6 100644 --- a/src/pages/Item/Card/ItemSummary.vue +++ b/src/pages/Item/Card/ItemSummary.vue @@ -8,6 +8,7 @@ import VnLv from 'src/components/ui/VnLv.vue'; import ItemDescriptorImage from 'src/pages/Item/Card/ItemDescriptorImage.vue'; import VnUserLink from 'src/components/ui/VnUserLink.vue'; import VnTitle from 'src/components/common/VnTitle.vue'; +import ItemDescriptorMenu from './ItemDescriptorMenu.vue'; const $props = defineProps({ id: { @@ -43,10 +44,13 @@ const getUrl = (id, param) => `#/Item/${id}/${param}`; +