From d74119f433ff694514dbde19c8a6ee14c392234d Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Tue, 5 Mar 2024 11:14:56 -0500 Subject: [PATCH] Solucion a comentarios 30 --- src/pages/Customer/Card/CustomerBalance.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/pages/Customer/Card/CustomerBalance.vue b/src/pages/Customer/Card/CustomerBalance.vue index 049bb9662..f7c658e31 100644 --- a/src/pages/Customer/Card/CustomerBalance.vue +++ b/src/pages/Customer/Card/CustomerBalance.vue @@ -32,7 +32,7 @@ const clientRisksRef = ref(null); const companiesOptions = ref([]); const companyId = ref(null); const receiptsRef = ref(null); -const data = ref([]); +const receiptsData = ref([]); const filterCompanies = { order: ['code'] }; const userParams = { @@ -136,14 +136,14 @@ const columns = computed(() => [ { align: 'left', field: 'debit', - format: (value) => toCurrency(value), + format: (value) => value && toCurrency(value), label: t('Debit'), name: 'debit', }, { align: 'left', field: 'credit', - format: (value) => toCurrency(value), + format: (value) => value && toCurrency(value), label: t('Havings'), name: 'havings', }, @@ -188,7 +188,7 @@ const getData = () => { }; const onFetch = (data) => { - data.value = data; + receiptsData.value = data; }; const showNewPaymentDialog = () => { @@ -249,7 +249,6 @@ const sendEmailAction = () => { :user-params="userParams" ref="receiptsRef" @on-fetch="onFetch" - @on-paginate="onPaginate" >