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 @@
{{ showingPreciseAmount ? 'Showing Precise Transaction' : 'Show Precise Transaction'}} - {{ showingPreciseAmount ? 'Download Precise Transaction' : 'Download Transaction'}} + {{ showingPreciseAmount ? 'Download Precise Transaction' : 'Download Transaction'}}
@@ -57,15 +57,11 @@
Balance
-
-
{{item.created_at}}
-
{{ convertTransactionType(item.type) }} {{ item.payment_reference ? ' - ' + item.payment_reference : '' }}
-
{{item.booking_marking}}
-
{{[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',