fix payment-and-billing vue console error

This commit is contained in:
edmondlang
2024-09-01 19:48:44 +08:00
parent b3973b52d1
commit 01d666d92a
2 changed files with 3 additions and 3 deletions
@@ -26,11 +26,11 @@
</div>
<div class="col" v-if="['customerPaidInvoiceComponent', 'customerPaidGroupInvoiceComponent'].includes(section)">
<p class="no-margin fs-10 all-caps">Payment Date</p>
<div>{{ item.payment_history[item.payment_history.length-1].created_at }}</div>
<div> {{ item.payment_history?.[item.payment_history.length - 1]?.created_at || '-' }}</div>
</div>
<div class="col" v-if="['customerPaidInvoiceComponent', 'customerPaidGroupInvoiceComponent'].includes(section)">
<p class="no-margin fs-10 all-caps">Bill Number</p>
<div>{{ item.payment_history[item.payment_history.length-1].payment_reference }}</div>
<div>{{ item.payment_history?.[item.payment_history.length-1]?.payment_reference || '-' }}</div>
</div>
<div class="col-auto">
<div v-if="item.documents.length">
@@ -155,7 +155,7 @@
export default {
props: {
sumAmount: {
type: String,
type: Number,
required: true
},
section:{