From 4fc3e1fabb7ff107d298eb4e285f0bccd2de7b54 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 5 Dec 2024 09:10:55 +0100 Subject: [PATCH] perf: refs #7134 #7134 fix filter panel --- src/pages/Supplier/Card/SupplierBalance.vue | 79 ++++++++++++++------- 1 file changed, 53 insertions(+), 26 deletions(-) diff --git a/src/pages/Supplier/Card/SupplierBalance.vue b/src/pages/Supplier/Card/SupplierBalance.vue index 0bdeefb32..293d1d013 100644 --- a/src/pages/Supplier/Card/SupplierBalance.vue +++ b/src/pages/Supplier/Card/SupplierBalance.vue @@ -44,6 +44,7 @@ const filter = computed(() => { return { supplierId: route.params.id, companyId: companyId.value ?? companyUser.value, + isBooked: false, }; }); @@ -138,33 +139,10 @@ const columns = computed(() => [ }, { align: 'left', - name: 'isConciliate', + name: 'isBooked', label: t('Conciliated'), cardVisible: true, }, - { - align: 'left', - name: 'tableActions', - actions: [ - // { - // title: t('globals.downloadPdf'), - // icon: 'cloud_download', - // show: (row) => row.isInvoice, - // action: (row) => showBalancePdf(row), - // }, - // { - // title: t('Send compensation'), - // icon: 'outgoing_mail', - // show: (row) => !!row.isCompensation, - // action: ({ id }) => - // openConfirmationModal( - // t('Send compensation'), - // t('Do you want to report compensation to the supplier by mail?'), - // () => sendEmail(`Receipts/${id}/balance-compensation-email`) - // ), - // }, - ], - }, ]); onBeforeMount(() => { @@ -223,7 +201,7 @@ function round(value) {