From c1c0dbf1f8e8b3e2a123bf482b5ac9706ef06a71 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 27 Nov 2023 18:11:06 -0300 Subject: [PATCH] Details --- src/boot/vnDate.js | 10 ++ src/i18n/es/index.js | 8 +- src/pages/InvoiceOut/InvoiceOutGlobal.vue | 1 + .../InvoiceOut/InvoiceOutNegativeBases.vue | 107 +++++++++++++----- src/pages/Travel/TravelFilter.vue | 3 +- 5 files changed, 93 insertions(+), 36 deletions(-) diff --git a/src/boot/vnDate.js b/src/boot/vnDate.js index c78886b57..33d5ac27f 100644 --- a/src/boot/vnDate.js +++ b/src/boot/vnDate.js @@ -15,4 +15,14 @@ export default boot(() => { Date.vnNow = () => { return new Date(Date.vnUTC()).getTime(); }; + + Date.vnFirstDayOfMonth = () => { + const date = new Date(Date.vnUTC()); + return new Date(date.getFullYear(), date.getMonth(), 1); + }; + + Date.vnLastDayOfMonth = () => { + const date = new Date(Date.vnUTC()); + return new Date(date.getFullYear(), date.getMonth() + 1, 0); + }; }); diff --git a/src/i18n/es/index.js b/src/i18n/es/index.js index edb20feb7..dcd7c3ca8 100644 --- a/src/i18n/es/index.js +++ b/src/i18n/es/index.js @@ -415,14 +415,14 @@ export default { to: 'Hasta', company: 'Empresa', country: 'PaĆ­s', - clientId: 'ID Cliente', + clientId: 'Id cliente', client: 'Cliente', amount: 'Importe', base: 'Base', - ticketId: 'ID Ticket', + ticketId: 'Id ticket', active: 'Activo', - hasToInvoice: 'Tiene que facturar', - verifiedData: 'Datos verificados', + hasToInvoice: 'Facturar', + verifiedData: 'Datos comprobados', comercial: 'Comercial', }, }, diff --git a/src/pages/InvoiceOut/InvoiceOutGlobal.vue b/src/pages/InvoiceOut/InvoiceOutGlobal.vue index a73ec590f..20ed4695a 100644 --- a/src/pages/InvoiceOut/InvoiceOutGlobal.vue +++ b/src/pages/InvoiceOut/InvoiceOutGlobal.vue @@ -131,6 +131,7 @@ onUnmounted(() => { :columns="columns" hide-bottom row-key="id" + :pagination="{ rowsPerPage: 0 }" class="full-width q-mt-md" >