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