From fd4ff94f4c7d68ce27ab3bbbbbff337439eba8c7 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Tue, 4 Jun 2024 14:14:16 +0200 Subject: [PATCH] feat: #6321 Update handleSplitted form --- .../InvoiceIn/Card/InvoiceInIntrastat.vue | 22 +-- src/pages/Ticket/Negative/HandleSplited.vue | 155 +++++++++++------- .../Ticket/Negative/TicketLackDetail.vue | 4 +- src/pages/Ticket/locale/en.yml | 4 +- src/pages/Ticket/locale/es.yml | 17 +- 5 files changed, 120 insertions(+), 82 deletions(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInIntrastat.vue b/src/pages/InvoiceIn/Card/InvoiceInIntrastat.vue index 1d1205d9e..d2851d2e7 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInIntrastat.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInIntrastat.vue @@ -72,8 +72,7 @@ const columns = computed(() => [ }, ]); -const getTotal = (data, key) => - data.reduce((acc, cur) => acc + +String(cur[key]).replace(',', '.'), 0); +const getTotal = (data, key) => data.reduce((acc, cur) => acc + cur[key], 0);