refactor: refs #8667 requested changes

This commit is contained in:
Jon Elias 2025-03-25 11:24:38 +01:00
parent 4460b7110e
commit c41756ebd2
1 changed files with 2 additions and 5 deletions
src/pages/Customer/Card

View File

@ -124,7 +124,7 @@ const columns = computed(() => [
align: 'left',
name: 'balance',
label: t('Balance'),
format: ({ balance }) => toCurrency(balance),
format: ({ row }) => toCurrency(balances[row]?.balance),
cardVisible: true,
},
{
@ -248,11 +248,8 @@ const showBalancePdf = ({ id }) => {
:disable-option="{ card: true }"
auto-load
>
<template #column-balance="{ row }">
{{ toCurrency(balances[row]?.balance) }}
</template>
<template #column-workerFk="{ row }">
<span class="link">
<span class="link" @click.stop>
{{ row.userName }}
<WorkerDescriptorProxy :id="row.workerFk" />
</span>