From fc3a025047cd58894c2106541645f077171b146f Mon Sep 17 00:00:00 2001 From: jgallego Date: Tue, 1 Oct 2024 13:03:55 +0200 Subject: [PATCH 001/120] 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: - searchInvoice: Search issued invoice - fileDenied: Browser denied file download... - fileAllowed: Successful download of CSV file - youCanSearchByInvoiceReference: You can search by invoice reference - createInvoice: Make invoice - createManualInvoice: Create manual invoice - - es: - searchInvoice: Buscar factura emitida - fileDenied: El navegador denegó la descarga de archivos... - fileAllowed: Descarga exitosa de archivo CSV - youCanSearchByInvoiceReference: Puedes buscar por referencia de la factura - createInvoice: Crear factura - createManualInvoice: Crear factura manual - + From fc73149dcfe1b2f83d06d3dd5cbaa6c6dc14008e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Andr=C3=A9s?= Date: Mon, 11 Nov 2024 14:20:39 +0100 Subject: [PATCH 014/120] feat: refs #8087 refs#8087 Redadas en travel --- src/i18n/locale/en.yml | 1 + src/i18n/locale/es.yml | 1 + .../Card/BasicData/TicketBasicDataForm.vue | 45 ++++++++++++++----- src/pages/Ticket/locale/en.yml | 1 + src/pages/Ticket/locale/es.yml | 1 + src/pages/Travel/Card/TravelBasicData.vue | 5 ++- src/pages/Travel/Card/TravelDescriptor.vue | 8 +--- src/pages/Travel/Card/TravelSummary.vue | 13 ++++-- src/pages/Travel/TravelList.vue | 8 ++-- 9 files changed, 57 insertions(+), 26 deletions(-) diff --git a/src/i18n/locale/en.yml b/src/i18n/locale/en.yml index a6065e451..53d6e2e9e 100644 --- a/src/i18n/locale/en.yml +++ b/src/i18n/locale/en.yml @@ -1041,6 +1041,7 @@ travel: delivered: Delivered received: Received daysInForward: Days in forward + isRaid: Raid thermographs: code: Code temperature: Temperature diff --git a/src/i18n/locale/es.yml b/src/i18n/locale/es.yml index 6f01f7dd1..0e6ee61c8 100644 --- a/src/i18n/locale/es.yml +++ b/src/i18n/locale/es.yml @@ -1039,6 +1039,7 @@ travel: delivered: Enviada received: Recibida daysInForward: Días redada + isRaid: Redada thermographs: code: Código temperature: Temperatura diff --git a/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue b/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue index f6c20c514..3ac385fbd 100644 --- a/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue +++ b/src/pages/Ticket/Card/BasicData/TicketBasicDataForm.vue @@ -36,6 +36,7 @@ const canEditZone = useAcl().hasAny([ const agencyFetchRef = ref(); const warehousesOptions = ref([]); const companiesOptions = ref([]); +const currenciesOptions = ref([]); const agenciesOptions = ref([]); const zonesOptions = ref([]); const addresses = ref([]); @@ -289,6 +290,15 @@ async function getZone(options) { @on-fetch="(data) => (companiesOptions = data)" auto-load /> + - + + + + + es: - raidDays: Al rellenarlo, generamos una redada. Indica los días que un travel se moverá automáticamente en el tiempo + raidDays: Si se marca "Redada", la fecha de entrega se moverá automáticamente los días indicados (incluido 0). Si no se especifican días, la fecha no cambiará en: - raidDays: When filling, a raid is generated. Enter the number of days the travel will automatically forward in time + raidDays: If "Raid" is checked, the landing date will automatically shift by the specified number of days (including 0). If no days are specified, the date will stay the same. diff --git a/src/pages/Travel/Card/TravelDescriptor.vue b/src/pages/Travel/Card/TravelDescriptor.vue index 6025ad045..a77d7460e 100644 --- a/src/pages/Travel/Card/TravelDescriptor.vue +++ b/src/pages/Travel/Card/TravelDescriptor.vue @@ -32,6 +32,7 @@ const filter = { 'warehouseOutFk', 'cargoSupplierFk', 'agencyModeFk', + 'isRaid', 'daysInForward', ], include: [ @@ -80,12 +81,7 @@ const setData = (entity) => (data.value = useCardDescription(entity.ref, entity. From 4bfbd1925e01d8945e8a29cbcfa37308da9dd3c8 Mon Sep 17 00:00:00 2001 From: wbuezas Date: Mon, 11 Nov 2024 15:18:29 -0300 Subject: [PATCH 016/120] test: refs #8162 ticket list e2e tests --- src/components/VnTable/VnTable.vue | 1 + src/components/ui/VnSearchbar.vue | 1 + src/pages/Ticket/Card/TicketDescriptor.vue | 2 +- src/pages/Ticket/Card/TicketSummary.vue | 1 + src/pages/Ticket/TicketList.vue | 2 + .../integration/ticket/ticketList.spec.js | 54 +++++++++++++++++++ test/cypress/support/commands.js | 4 ++ 7 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 test/cypress/integration/ticket/ticketList.spec.js diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index fd7b0c51a..99a9a6801 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -737,6 +737,7 @@ function handleSelection({ evt, added, rows: selectedRows }, rows) { fab icon="add" shortcut="+" + data-testid="vnTableCreateBtn" /> {{ createForm?.title }} diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index dc6d4751c..7a72a09ea 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -130,6 +130,7 @@ async function search() { dense standout autofocus + data-testid="vnSearchBar" >