mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
fix payment-and-billing vue console error
This commit is contained in:
+2
-2
@@ -26,11 +26,11 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col" v-if="['customerPaidInvoiceComponent', 'customerPaidGroupInvoiceComponent'].includes(section)">
|
<div class="col" v-if="['customerPaidInvoiceComponent', 'customerPaidGroupInvoiceComponent'].includes(section)">
|
||||||
<p class="no-margin fs-10 all-caps">Payment Date</p>
|
<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>
|
||||||
<div class="col" v-if="['customerPaidInvoiceComponent', 'customerPaidGroupInvoiceComponent'].includes(section)">
|
<div class="col" v-if="['customerPaidInvoiceComponent', 'customerPaidGroupInvoiceComponent'].includes(section)">
|
||||||
<p class="no-margin fs-10 all-caps">Bill Number</p>
|
<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>
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<div v-if="item.documents.length">
|
<div v-if="item.documents.length">
|
||||||
|
|||||||
@@ -155,7 +155,7 @@
|
|||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
sumAmount: {
|
sumAmount: {
|
||||||
type: String,
|
type: Number,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
section:{
|
section:{
|
||||||
|
|||||||
Reference in New Issue
Block a user