diff --git a/resources/assets/vue/components/wallets/elements/CustomerTransactionSectionComponent.vue b/resources/assets/vue/components/wallets/elements/CustomerTransactionSectionComponent.vue
index ab2577db..73616dd9 100644
--- a/resources/assets/vue/components/wallets/elements/CustomerTransactionSectionComponent.vue
+++ b/resources/assets/vue/components/wallets/elements/CustomerTransactionSectionComponent.vue
@@ -14,7 +14,7 @@
@@ -122,7 +122,24 @@ export default {
successHandler(response){
this.isLoading = false;
this.company = response.payload.data;
- }
+ },
+ download(company, paramShowingPreciseAmount) {
+ let url = this.route('wallet.details-export', company.reference, paramShowingPreciseAmount);
+ if(window.LARAVEL_VAPOR_ENABLED){
+ return fetch(url, {
+ method: 'GET',
+ responseType: 'json',
+ }).then(response => response.json())
+ .then(response => {
+ if (response.src) {
+ window.location.href = response.src;
+ }
+ });
+ }
+ else{
+ window.open(url, '_blank');
+ }
+ },
}
}