diff --git a/src/components/FormPopup.vue b/src/components/FormPopup.vue
new file mode 100644
index 0000000000..951d697d57
--- /dev/null
+++ b/src/components/FormPopup.vue
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+ {{ title }}
+ {{ subtitle }}
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue b/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue
index ca2bf1304c..76b9cefdc7 100644
--- a/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue
+++ b/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue
@@ -3,6 +3,7 @@ import { ref } from 'vue';
import { useI18n } from 'vue-i18n';
import TransferInvoiceForm from 'src/components/TransferInvoiceForm.vue';
+import SendInvoiceForm from './SendInvoiceForm.vue';
import { useSession } from 'src/composables/useSession';
import { usePrintService } from 'composables/usePrintService';
@@ -20,6 +21,8 @@ const { t } = useI18n();
const { openReport } = usePrintService();
const transferInvoiceDialogRef = ref();
+const sendInvoiceFormRef = ref();
+const invoiceFormType = ref(null);
const showInvoicePdf = () => {
const url = `api/InvoiceOuts/${$props.invoiceOutData.id}/download?access_token=${token}`;
@@ -31,6 +34,11 @@ const showInvoiceCsv = () => {
recipientId: $props.invoiceOutData.client.id,
});
};
+
+const showSendInvoiceForm = (type) => {
+ invoiceFormType.value = type;
+ sendInvoiceFormRef.value.show();
+};
@@ -60,10 +68,10 @@ const showInvoiceCsv = () => {
-
+
{{ t('Send PDF') }}
-
+
{{ t('Send CSV') }}
@@ -98,6 +106,9 @@ const showInvoiceCsv = () => {
+
+
+
diff --git a/src/pages/InvoiceOut/Card/SendInvoiceForm.vue b/src/pages/InvoiceOut/Card/SendInvoiceForm.vue
new file mode 100644
index 0000000000..3956dab089
--- /dev/null
+++ b/src/pages/InvoiceOut/Card/SendInvoiceForm.vue
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+es:
+ Email: Email
+ Confirm: Confirmar
+ Are you sure you want to send it?: ¿Seguro que quieres enviarlo?
+