fix: update TableDebitNote to use finalPrice instead of totalPrice and add key attribute to q-td elements

This commit is contained in:
puriphatt 2025-03-10 10:23:17 +07:00
parent eba12e451a
commit 8bc450f4d3
2 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ const visible = computed(() =>
} & Omit<Parameters<QTableSlots['body']>[0], 'row'>"
>
<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 # -->
<template v-if="!col.name.startsWith('#')">
<span v-if="col.name !== 'quotationPayment'">

View file

@ -69,7 +69,7 @@ export const columns = [
name: 'creditNoteValue',
align: 'center',
label: 'debitNote.label.value',
field: (data: DebitNote) => formatNumberDecimal(data.totalPrice),
field: (data: DebitNote) => formatNumberDecimal(data.finalPrice),
},
{
name: '#action',