From c099bcd0a2997c5c4ccf90b11548e45774cc0b13 Mon Sep 17 00:00:00 2001 From: Dillon Ngo Date: Sat, 22 Jun 2024 11:47:39 +0800 Subject: [PATCH] Fix a problem in merge conflict done wrong --- ...omerTransactionHistorySectionComponent.vue | 35 +++++++++++++------ 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/resources/assets/vue/components/bookings/elements/CustomerTransactionHistorySectionComponent.vue b/resources/assets/vue/components/bookings/elements/CustomerTransactionHistorySectionComponent.vue index ae833721..98446217 100644 --- a/resources/assets/vue/components/bookings/elements/CustomerTransactionHistorySectionComponent.vue +++ b/resources/assets/vue/components/bookings/elements/CustomerTransactionHistorySectionComponent.vue @@ -13,7 +13,7 @@
@@ -57,15 +57,11 @@
Balance
-
-
{{item.created_at}}
-
{{ convertTransactionType(item.type) }} {{ item.payment_reference ? ' - ' + item.payment_reference : '' }}
- -
{{[5, 9].includes(parseFloat(item.type)) ? (Math.round((parseFloat(item.amount) + Number.EPSILON) * 100) / 100).toFixed(2).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") : ''}}
-
{{(Math.round(((parseFloat(item.amount) / parseFloat(item.currency_rate) + parseFloat(item.service_charge)) + Number.EPSILON) * 100) / 100).toFixed(2).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}}
-
{{[1, 11].includes(parseFloat(item.type)) ? '- ' + (Math.round((parseFloat(item.amount) + Number.EPSILON) * 100) / 100).toFixed(2).toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") : ''}}
-
{{remainingBalance(index)}}
-
+ + + @@ -115,8 +111,25 @@ export default { this.isLoading = false; this.transaction = response.payload.data; }, + submitSearch() { + delete this.options.marking; + delete this.options.startDate; + delete this.options.endDate; + + if (this.reference_no) { + this.options.marking = this.reference_no + } + if (this.startDate) { + this.options.startDate = this.startDate + } + if (this.endDate) { + this.options.endDate = this.endDate + } + + this.key ++; + }, downloadTransaction(paramItem) { - let url = this.route('transaction.credit_note.download', paramItem.id); + let url = this.route('company.transaction.export', this.id, showingPreciseAmount); if(window.LARAVEL_VAPOR_ENABLED){ return fetch(url, { method: 'GET',