From 5b53e9dc37651a22ca2ea9d3c1dc87079aba6519 Mon Sep 17 00:00:00 2001 From: jgallego Date: Tue, 3 Sep 2024 15:25:36 +0200 Subject: [PATCH] feat: transfer an invoice --- src/components/TransferInvoiceForm.vue | 4 +--- .../Card/InvoiceOutDescriptorMenu.vue | 21 ++++++++++++++----- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/components/TransferInvoiceForm.vue b/src/components/TransferInvoiceForm.vue index 17c11d87e..23c988ee7 100644 --- a/src/components/TransferInvoiceForm.vue +++ b/src/components/TransferInvoiceForm.vue @@ -26,7 +26,6 @@ const { notify } = useNotify(); const checked = ref(true); const transferInvoiceParams = reactive({ id: $props.invoiceOutData?.id, - refFk: $props.invoiceOutData?.ref, }); const rectificativeTypeOptions = ref([]); @@ -46,7 +45,6 @@ const makeInvoice = async () => { cplusRectificationTypeFk: transferInvoiceParams.cplusRectificationTypeFk, invoiceCorrectionTypeFk: transferInvoiceParams.invoiceCorrectionTypeFk, newClientFk: transferInvoiceParams.newClientFk, - refFk: transferInvoiceParams.refFk, siiTypeInvoiceOutFk: transferInvoiceParams.siiTypeInvoiceOutFk, makeInvoice: checked.value, }; @@ -74,7 +72,7 @@ const makeInvoice = async () => { } } - const { data } = await axios.post('InvoiceOuts/transferInvoice', params); + const { data } = await axios.post('InvoiceOuts/transfer', params); notify(t('Transferred invoice'), 'positive'); const id = data?.[0]; if (id) router.push({ name: 'InvoiceOutSummary', params: { id } }); diff --git a/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue b/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue index 4c02ccf84..0ded54688 100644 --- a/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue +++ b/src/pages/InvoiceOut/Card/InvoiceOutDescriptorMenu.vue @@ -228,11 +228,19 @@ const showTransferInvoiceForm = async () => { - - {{ t('With warehouse') }} + + {{ t('With warehouse, no invoice') }} - - {{ t('Without warehouse') }} + + {{ t('Without warehouse, no invoice') }} + + + {{ t('With warehouse, with invoice') }} + + + {{ + t('Without warehouse, with invoice') + }} @@ -255,7 +263,10 @@ es: As CSV: como CSV Send PDF: Enviar PDF Send CSV: Enviar CSV - With warehouse: Con almacén + With warehouse, no invoice: Con almacén, sin factura + Without warehouse, no invoice: Sin almacén, sin factura + With warehouse, with invoice: Con almacén, con factura + Without warehouse, with invoice: Sin almacén, con factura Without warehouse: Sin almacén InvoiceOut deleted: Factura eliminada Confirm deletion: Confirmar eliminación