From 34cfd575899d2821e57abc2242a7cba60b145611 Mon Sep 17 00:00:00 2001 From: jtubau Date: Mon, 13 Jan 2025 07:02:11 +0100 Subject: [PATCH] refactor: refs #8316 restore exprBuilder function to filter invoice data --- src/pages/InvoiceOut/InvoiceOutList.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pages/InvoiceOut/InvoiceOutList.vue b/src/pages/InvoiceOut/InvoiceOutList.vue index dbd905e35..43f887e67 100644 --- a/src/pages/InvoiceOut/InvoiceOutList.vue +++ b/src/pages/InvoiceOut/InvoiceOutList.vue @@ -38,7 +38,11 @@ async function fetchClientAddress(id) { addressOptions.value = data; } - +const exprBuilder = (_, value) => { + return { + or: [{ code: value }, { description: { like: `%${value}%` } }], + }; +}; const columns = computed(() => [ { @@ -177,7 +181,6 @@ watchEffect(selectedRows); :array-data-props="{ url: 'InvoiceOuts/filter', order: ['id DESC'], - exprBuilder, }" >