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" />