From fc3a025047cd58894c2106541645f077171b146f Mon Sep 17 00:00:00 2001 From: jgallego Date: Tue, 1 Oct 2024 13:03:55 +0200 Subject: [PATCH 01/89] feat: manualInvoice with address --- src/components/CreateManualInvoiceForm.vue | 155 ------------------ src/components/VnTable/VnTable.vue | 4 +- src/components/common/VnInputDate.vue | 3 +- src/composables/useArrayData.js | 2 +- .../Card/InvoiceOutDescriptorMenu.vue | 3 - src/pages/InvoiceOut/InvoiceOutList.vue | 17 ++ src/pages/InvoiceOut/locale/en.yml | 17 +- src/pages/InvoiceOut/locale/es.yml | 19 ++- src/pages/Order/Card/OrderCreateDialog.vue | 7 +- 9 files changed, 41 insertions(+), 186 deletions(-) delete mode 100644 src/components/CreateManualInvoiceForm.vue diff --git a/src/components/CreateManualInvoiceForm.vue b/src/components/CreateManualInvoiceForm.vue deleted file mode 100644 index da006e024..000000000 --- a/src/components/CreateManualInvoiceForm.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - - - -es: - Create manual invoice: Crear factura manual - Ticket: Ticket - Client: Cliente - Max date: Fecha límite - Serial: Serie - Area: Area - Reference: Referencia - Or: O - Invoicing in progress...: Facturación en progreso... - diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 572dbf144..c9867dd07 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -162,9 +162,7 @@ onMounted(() => { : $props.defaultMode; stateStore.rightDrawer = quasar.screen.gt.xs; columnsVisibilitySkipped.value = [ - ...splittedColumns.value.columns - .filter((c) => c.visible == false) - .map((c) => c.name), + ...splittedColumns.value.columns.filter((c) => !c.visible).map((c) => c.name), ...['tableActions'], ]; createForm.value = $props.create; diff --git a/src/components/common/VnInputDate.vue b/src/components/common/VnInputDate.vue index 3d5afaf80..57335d293 100644 --- a/src/components/common/VnInputDate.vue +++ b/src/components/common/VnInputDate.vue @@ -1,8 +1,7 @@ - + + en: - invoice id: Invoice ID - view summary: View Summary - download pdf: Download PDF - you can search by invoice reference: You can search by invoice reference - search invoice: Search Invoice - create manual invoice: Create Manual Invoice - invoice serial: Invoice Serial - tax area: Tax Area + invoiceId: Invoice ID + viewSummary: View Summary + downloadPdf: Download PDF + youCanSearchByInvoiceReference: You can search by invoice reference + searchInvoice: Search Invoice + createManualInvoice: Create Manual Invoice + invoiceSerial: Invoice Serial + taxArea: Tax Area + dueDate: Due Date + reference: Reference + basicData: + inactive: Inactive es: - invoice id: ID de factura - view summary: Ver resumen - download pdf: Descargar PDF - you can search by invoice reference: Puedes buscar por referencia de la factura - search invoice: Buscar factura - create manual invoice: Crear factura manual - invoice serial: Serie de factura - tax area: Área fiscal + invoiceId: ID de factura + viewSummary: Ver resumen + downloadPdf: Descargar PDF + youCanSearchByInvoiceReference: Puedes buscar por referencia de la factura + searchInvoice: Buscar factura + createManualInvoice: Crear factura manual + invoiceSerial: Serie de factura + taxArea: Área fiscal + dueDate: Fecha de vencimiento + reference: Referencia + basicData: + inactive: Inactivo From 40ecd6e3584a94627b714c9dd474975cc3d3187e Mon Sep 17 00:00:00 2001 From: guillermo Date: Tue, 12 Nov 2024 08:28:02 +0100 Subject: [PATCH 26/89] refactor: refs #7950 Created cmr model --- src/pages/Route/Cmr/CmrList.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/Route/Cmr/CmrList.vue b/src/pages/Route/Cmr/CmrList.vue index ede271960..b3eaf3b48 100644 --- a/src/pages/Route/Cmr/CmrList.vue +++ b/src/pages/Route/Cmr/CmrList.vue @@ -116,7 +116,7 @@ function getApiUrl() { return new URL(window.location).origin; } function getCmrUrl(value) { - return `${getApiUrl()}/api/Routes/${value}/cmr?access_token=${token}`; + return `${getApiUrl()}/api/Cmrs/${value}/print?access_token=${token}`; } function downloadPdfs() { if (!selectedRows.value.length) { @@ -129,7 +129,7 @@ function downloadPdfs() { let cmrs = []; for (let value of selectedRows.value) cmrs.push(value.cmrFk); // prettier-ignore - return window.open(`${getApiUrl()}/api/Routes/downloadCmrsZip?ids=${cmrs.join(',')}&access_token=${token}`); + return window.open(`${getApiUrl()}/api/Cmrs/downloadZip?ids=${cmrs.join(',')}&access_token=${token}`); }