From c2e2d5ca8149c5a8a65de2b11e565922059b66aa Mon Sep 17 00:00:00 2001 From: jgallego Date: Wed, 4 Sep 2024 18:30:20 +0200 Subject: [PATCH] feat: minor fixes --- src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue b/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue index 6a3bb5a78..213e25b4a 100644 --- a/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue +++ b/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue @@ -38,6 +38,7 @@ const { openConfirmationModal } = useVnConfirm(); const quasar = useQuasar(); const salixUrl = ref(); const invoiceFormType = ref('pdf'); +const defaultEmailAddress = ref($props.invoiceOutData.client?.email); const showInvoicePdf = () => { const url = `api/InvoiceOuts/${$props.invoiceOutData.id}/download?access_token=${token}`; @@ -54,6 +55,12 @@ const showSendInvoiceDialog = (type) => { invoiceFormType.value = type; quasar.dialog({ component: SendEmailDialog, + componentProps: { + data: { + address: defaultEmailAddress.value, + }, + promise: sendEmailInvoice, + }, }); }; @@ -264,7 +271,6 @@ es: With warehouse, no invoice: Con almacén, sin factura Without warehouse, no invoice: Sin almacén, sin factura Invoiced: Facturado - Without warehouse: Sin almacén InvoiceOut deleted: Factura eliminada Confirm deletion: Confirmar eliminación Are you sure you want to delete this invoice?: Estas seguro de eliminar esta factura?