From 7d28037c29a89ed9a9a09cd7afcb99e6d557541f Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 27 Nov 2024 14:09:37 +0100 Subject: [PATCH 1/4] fix: fixed ref filter in InvoiceOutList --- src/pages/InvoiceOut/InvoiceOutList.vue | 38 ++++++++++++------------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/src/pages/InvoiceOut/InvoiceOutList.vue b/src/pages/InvoiceOut/InvoiceOutList.vue index 092844386..f5a4f7d80 100644 --- a/src/pages/InvoiceOut/InvoiceOutList.vue +++ b/src/pages/InvoiceOut/InvoiceOutList.vue @@ -43,16 +43,17 @@ const columns = computed(() => [ { align: 'left', name: 'ref', - label: t('invoiceOutList.tableVisibleColumns.ref'), + label: t('globals.reference'), isTitle: true, component: 'select', attrs: { url: MODEL, optionLabel: 'ref', - optionValue: 'id', + optionValue: 'ref', }, - columnField: { - component: null, + columnField: { component: null }, + columnFilter: { + inWhere: true, }, }, { @@ -147,25 +148,22 @@ function openPdf(id) { } function downloadPdf() { - if (selectedRows.value.size === 0) return; - const selectedCardsArray = Array.from(selectedRows.value.values()); + if (selectedRows.value.size === 0) return; + const selectedCardsArray = Array.from(selectedRows.value.values()); - if (selectedRows.value.size === 1) { - const [invoiceOut] = selectedCardsArray; - openPdf(invoiceOut.id); - } else { - const invoiceOutIdsArray = selectedCardsArray.map( - (invoiceOut) => invoiceOut.id - ); - const invoiceOutIds = invoiceOutIdsArray.join(','); + if (selectedRows.value.size === 1) { + const [invoiceOut] = selectedCardsArray; + openPdf(invoiceOut.id); + } else { + const invoiceOutIdsArray = selectedCardsArray.map((invoiceOut) => invoiceOut.id); + const invoiceOutIds = invoiceOutIdsArray.join(','); - const params = { - ids: invoiceOutIds, - }; - - openReport(`${MODEL}/downloadZip`, params); - } + const params = { + ids: invoiceOutIds, + }; + openReport(`${MODEL}/downloadZip`, params); + } } watchEffect(selectedRows); From 33de645e37bd9ac0d9942e6d8d07ca7a0445c5c4 Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 27 Nov 2024 17:02:41 +0100 Subject: [PATCH 2/4] fix: not fetch on mounted --- src/components/ui/VnPaginate.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ui/VnPaginate.vue b/src/components/ui/VnPaginate.vue index f3f6d64f1..3649ba8f5 100644 --- a/src/components/ui/VnPaginate.vue +++ b/src/components/ui/VnPaginate.vue @@ -133,7 +133,7 @@ const addFilter = async (filter, params) => { async function fetch(params) { useArrayData(props.dataKey, params); arrayData.reset(['filter.skip', 'skip', 'page']); - await arrayData.fetch({ append: false }); + await arrayData.fetch({ append: false, updateRouter: mounted.value }); return emitStoreData(); } From 55b9e3ddcdea6edd213cc9df08f610e62d09088a Mon Sep 17 00:00:00 2001 From: guillermo Date: Thu, 28 Nov 2024 08:21:09 +0100 Subject: [PATCH 3/4] fix: refs #7266 Bad report --- src/pages/Entry/EntryBuysTableDialog.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Entry/EntryBuysTableDialog.vue b/src/pages/Entry/EntryBuysTableDialog.vue index c885c2485..77b31aaa3 100644 --- a/src/pages/Entry/EntryBuysTableDialog.vue +++ b/src/pages/Entry/EntryBuysTableDialog.vue @@ -86,7 +86,7 @@ const entriesTableColumns = computed(() => [ color="primary" icon="print" :loading="isLoading" - @click="openReport(`Entries/${entityId}/print`)" + @click="openReport(`Entries/${entityId}/buy-label-supplier`)" unelevated autofocus /> From 41fb880c0eec149b8e9d70e0c5d241758fa42b67 Mon Sep 17 00:00:00 2001 From: guillermo Date: Thu, 28 Nov 2024 08:59:13 +0100 Subject: [PATCH 4/4] fix: refs #7266 Minor fixes --- src/pages/Entry/EntryBuysTableDialog.vue | 8 +++++--- src/pages/Entry/MyEntries.vue | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/pages/Entry/EntryBuysTableDialog.vue b/src/pages/Entry/EntryBuysTableDialog.vue index 77b31aaa3..3975bff19 100644 --- a/src/pages/Entry/EntryBuysTableDialog.vue +++ b/src/pages/Entry/EntryBuysTableDialog.vue @@ -82,11 +82,11 @@ const entriesTableColumns = computed(() => [ @@ -126,7 +126,9 @@ const entriesTableColumns = computed(() => [ " unelevated > - {{ t('viewLabel') }} + {{ + t('myEntries.viewLabel') + }} diff --git a/src/pages/Entry/MyEntries.vue b/src/pages/Entry/MyEntries.vue index 2c37c2c42..91a29b190 100644 --- a/src/pages/Entry/MyEntries.vue +++ b/src/pages/Entry/MyEntries.vue @@ -101,7 +101,7 @@ const columns = computed(() => [ name: 'tableActions', actions: [ { - title: t('printLabels'), + title: t('myEntries.printLabels'), icon: 'print', isPrimary: true, action: (row) => printBuys(row.id),