From 01d666d92a1c37b23ca3cfaf53d5a292bfd093bd Mon Sep 17 00:00:00 2001 From: edmondlang Date: Sun, 1 Sep 2024 19:48:44 +0800 Subject: [PATCH] fix payment-and-billing vue console error --- .../paymentsBilling/elements/PaymentsBillingComponents.vue | 4 ++-- .../paymentsBilling/forms/GroupPaymentFormComponent.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/assets/vue/components/paymentsBilling/elements/PaymentsBillingComponents.vue b/resources/assets/vue/components/paymentsBilling/elements/PaymentsBillingComponents.vue index daf67ab6..ca4c0608 100644 --- a/resources/assets/vue/components/paymentsBilling/elements/PaymentsBillingComponents.vue +++ b/resources/assets/vue/components/paymentsBilling/elements/PaymentsBillingComponents.vue @@ -26,11 +26,11 @@

Payment Date

-
{{ item.payment_history[item.payment_history.length-1].created_at }}
+
{{ item.payment_history?.[item.payment_history.length - 1]?.created_at || '-' }}

Bill Number

-
{{ item.payment_history[item.payment_history.length-1].payment_reference }}
+
{{ item.payment_history?.[item.payment_history.length-1]?.payment_reference || '-' }}
diff --git a/resources/assets/vue/components/paymentsBilling/forms/GroupPaymentFormComponent.vue b/resources/assets/vue/components/paymentsBilling/forms/GroupPaymentFormComponent.vue index df063c2d..f4979ca3 100644 --- a/resources/assets/vue/components/paymentsBilling/forms/GroupPaymentFormComponent.vue +++ b/resources/assets/vue/components/paymentsBilling/forms/GroupPaymentFormComponent.vue @@ -155,7 +155,7 @@ export default { props: { sumAmount: { - type: String, + type: Number, required: true }, section:{