fix: update TableDebitNote to use finalPrice instead of totalPrice and add key attribute to q-td elements
This commit is contained in:
parent
eba12e451a
commit
8bc450f4d3
2 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ const visible = computed(() =>
|
||||||
} & Omit<Parameters<QTableSlots['body']>[0], 'row'>"
|
} & Omit<Parameters<QTableSlots['body']>[0], 'row'>"
|
||||||
>
|
>
|
||||||
<q-tr :class="{ dark: $q.dark.isActive }" class="text-center">
|
<q-tr :class="{ dark: $q.dark.isActive }" class="text-center">
|
||||||
<q-td v-for="col in visible" :align="col.align">
|
<q-td v-for="col in visible" :align="col.align" :key="col.name">
|
||||||
<!-- NOTE: custom column will starts with # -->
|
<!-- NOTE: custom column will starts with # -->
|
||||||
<template v-if="!col.name.startsWith('#')">
|
<template v-if="!col.name.startsWith('#')">
|
||||||
<span v-if="col.name !== 'quotationPayment'">
|
<span v-if="col.name !== 'quotationPayment'">
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ export const columns = [
|
||||||
name: 'creditNoteValue',
|
name: 'creditNoteValue',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
label: 'debitNote.label.value',
|
label: 'debitNote.label.value',
|
||||||
field: (data: DebitNote) => formatNumberDecimal(data.totalPrice),
|
field: (data: DebitNote) => formatNumberDecimal(data.finalPrice),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: '#action',
|
name: '#action',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue