7299_testToMaster #351

Merged
alexm merged 321 commits from 7299_testToMaster into master 2024-05-07 05:36:02 +00:00
1 changed files with 6 additions and 7 deletions
Showing only changes of commit d74119f433 - Show all commits
src/pages/Customer/Card

View File

@ -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"
>
<template #body="{ rows }">
<QTable
@ -273,7 +272,7 @@ const sendEmailAction = () => {
tableColumnComponents[props.col.name].event(props)
"
>
<template v-if="props.col.name !== 'isConciliate'">
<template v-if="props.col.name !== 'conciliated'">
{{ props.value }}
</template>
<WorkerDescriptorProxy
@ -302,7 +301,7 @@ const sendEmailAction = () => {
/>
</div>
<QCard class="q-ma-md q-pa-md q-mt-lg" v-if="data?.length">
<QCard class="q-ma-md q-pa-md q-mt-lg" v-if="receiptsData?.length">
<QCardSection>
<div class="flex justify-center text-subtitle1 text-bold">
{{ t('Total by company') }}