From d12c0de144062d02847aa0684b7976aaaa18bd75 Mon Sep 17 00:00:00 2001 From: guillermo Date: Mon, 5 Aug 2024 11:29:44 +0200 Subject: [PATCH] feat: refs #7644 Optimized entry labels report --- src/pages/Entry/EntryBuysTableDialog.vue | 25 +++++++++++++++++++++--- src/pages/Entry/MyEntries.vue | 2 +- src/pages/Entry/locale/en.yml | 3 ++- src/pages/Entry/locale/es.yml | 3 ++- 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/src/pages/Entry/EntryBuysTableDialog.vue b/src/pages/Entry/EntryBuysTableDialog.vue index c2b04c291..9a76770aa 100644 --- a/src/pages/Entry/EntryBuysTableDialog.vue +++ b/src/pages/Entry/EntryBuysTableDialog.vue @@ -20,11 +20,17 @@ const $props = defineProps({ const entityId = computed(() => $props.id || route.params.id); const entriesTableColumns = computed(() => [ + { + align: 'left', + name: 'id', + field: 'id', + label: t('globals.id'), + }, { align: 'left', name: 'itemFk', field: 'itemFk', - label: t('globals.id'), + label: t('entry.latestBuys.tableVisibleColumns.itemFk'), }, { align: 'left', @@ -76,11 +82,11 @@ const entriesTableColumns = computed(() => [ @@ -109,6 +115,19 @@ const entriesTableColumns = computed(() => [ {{ col.value }} + + {{ t('printLabel') }} + diff --git a/src/pages/Entry/MyEntries.vue b/src/pages/Entry/MyEntries.vue index e6974a04b..1c56427f4 100644 --- a/src/pages/Entry/MyEntries.vue +++ b/src/pages/Entry/MyEntries.vue @@ -86,7 +86,7 @@ const columns = computed(() => [ name: 'tableActions', actions: [ { - title: t('printBuys'), + title: t('printLabels'), icon: 'print', action: (row) => printBuys(row.id), }, diff --git a/src/pages/Entry/locale/en.yml b/src/pages/Entry/locale/en.yml index df78b17c9..f0965b097 100644 --- a/src/pages/Entry/locale/en.yml +++ b/src/pages/Entry/locale/en.yml @@ -10,4 +10,5 @@ landed: Landed shipped: Shipped fromShipped: Shipped(from) toShipped: Shipped(to) -printBuys: Print buys +printLabels: Print stickers +printLabel: Print sticker diff --git a/src/pages/Entry/locale/es.yml b/src/pages/Entry/locale/es.yml index 4308722fb..aba04571e 100644 --- a/src/pages/Entry/locale/es.yml +++ b/src/pages/Entry/locale/es.yml @@ -14,4 +14,5 @@ landed: F. llegada shipped: F. salida fromShipped: F. salida(desde) toShipped: F. salida(hasta) -Print buys: Imprimir etiquetas +printLabels: Imprimir etiquetas +printLabel: Imprimir etiqueta