diff --git a/src/components/CreateNewCityForm.vue b/src/components/CreateNewCityForm.vue index e51a18ef8..1cbba42fc 100644 --- a/src/components/CreateNewCityForm.vue +++ b/src/components/CreateNewCityForm.vue @@ -47,11 +47,13 @@ const onDataSaved = (...args) => { :label="t('Name')" v-model="data.name" :rules="validate('city.name')" + required /> diff --git a/src/components/CreateNewPostcodeForm.vue b/src/components/CreateNewPostcodeForm.vue index 907e49499..232f86a49 100644 --- a/src/components/CreateNewPostcodeForm.vue +++ b/src/components/CreateNewPostcodeForm.vue @@ -1,5 +1,5 @@ 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), diff --git a/src/pages/InvoiceOut/InvoiceOutFilter.vue b/src/pages/InvoiceOut/InvoiceOutFilter.vue index 9ce8cc254..dc1d833a2 100644 --- a/src/pages/InvoiceOut/InvoiceOutFilter.vue +++ b/src/pages/InvoiceOut/InvoiceOutFilter.vue @@ -83,36 +83,29 @@ const states = ref(); /> - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -149,5 +142,4 @@ es: Issued: Fecha emisión Created: Fecha creación Dued: Fecha vencimiento - More options: Más opciones diff --git a/src/pages/InvoiceOut/InvoiceOutList.vue b/src/pages/InvoiceOut/InvoiceOutList.vue index 8edb78732..c8fffb0ef 100644 --- a/src/pages/InvoiceOut/InvoiceOutList.vue +++ b/src/pages/InvoiceOut/InvoiceOutList.vue @@ -60,8 +60,15 @@ const columns = computed(() => [ label: t('globals.reference'), isTitle: true, component: 'select', - attrs: { url: MODEL, optionLabel: 'ref', optionValue: 'id' }, + attrs: { + url: MODEL, + optionLabel: 'ref', + optionValue: 'ref', + }, columnField: { component: null }, + columnFilter: { + inWhere: true, + }, }, { align: 'left', @@ -139,25 +146,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); diff --git a/src/pages/Order/Card/CatalogFilterValueDialog.vue b/src/pages/Order/Card/CatalogFilterValueDialog.vue index 53bb87f8d..b91e7d229 100644 --- a/src/pages/Order/Card/CatalogFilterValueDialog.vue +++ b/src/pages/Order/Card/CatalogFilterValueDialog.vue @@ -49,7 +49,7 @@ const getSelectedTagValues = async (tag) => { diff --git a/src/pages/Order/Card/OrderCatalogFilter.vue b/src/pages/Order/Card/OrderCatalogFilter.vue index 6202a6f90..1dd569fb5 100644 --- a/src/pages/Order/Card/OrderCatalogFilter.vue +++ b/src/pages/Order/Card/OrderCatalogFilter.vue @@ -178,6 +178,7 @@ function addOrder(value, field, params) { ? resetCategory(params, searchFn) : removeTagGroupParam(params, searchFn, valIndex) " + data-cy="catalogFilterCustomTag" > {{ @@ -211,6 +212,7 @@ function addOrder(value, field, params) { :name="category.icon" class="category-icon" @click="selectCategory(params, category, searchFn)" + data-cy="catalogFilterCategory" > {{ t(category.name) }} @@ -234,6 +236,7 @@ function addOrder(value, field, params) { sort-by="name ASC" :disable="!params.categoryFk" @update:model-value="searchFn()" + data-cy="catalogFilterType" >