From 168fe4c5b1153fdfc2cee44767632d93a1d9ad5a Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 13 Jan 2025 13:10:59 +0100 Subject: [PATCH] fix: refs #8316 user-filter --- src/pages/InvoiceIn/Card/InvoiceInCard.vue | 66 +++++++++++----------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInCard.vue b/src/pages/InvoiceIn/Card/InvoiceInCard.vue index 25d2d0e19..8aa35f4d8 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInCard.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInCard.vue @@ -2,38 +2,38 @@ import VnCardBeta from 'components/common/VnCardBeta.vue'; import InvoiceInDescriptor from './InvoiceInDescriptor.vue'; -const filter = { - include: [ - { - relation: 'supplier', - scope: { - include: { - relation: 'contacts', - scope: { where: { email: { neq: null } } }, - }, - }, - }, - { relation: 'invoiceInDueDay' }, - { relation: 'company' }, - { relation: 'currency' }, - { - relation: 'dms', - scope: { - fields: [ - 'dmsTypeFk', - 'reference', - 'hardCopyNumber', - 'workerFk', - 'description', - 'hasFile', - 'file', - 'created', - 'companyFk', - 'warehouseFk', - ], - }, - }, - ], +const filter = { + include: [ + { + relation: 'supplier', + scope: { + include: { + relation: 'contacts', + scope: { where: { email: { neq: null } } }, + }, + }, + }, + { relation: 'invoiceInDueDay' }, + { relation: 'company' }, + { relation: 'currency' }, + { + relation: 'dms', + scope: { + fields: [ + 'dmsTypeFk', + 'reference', + 'hardCopyNumber', + 'workerFk', + 'description', + 'hasFile', + 'file', + 'created', + 'companyFk', + 'warehouseFk', + ], + }, + }, + ], }; @@ -42,6 +42,6 @@ const filter = { data-key="InvoiceIn" base-url="InvoiceIns" :descriptor="InvoiceInDescriptor" - :filter="filter" + :user-filter="filter" />