diff --git a/app/Classes/Modules/Companies/ControllersLogic/BulkDownloadCustomerInvoicesLogic.php b/app/Classes/Modules/Companies/ControllersLogic/BulkDownloadCustomerInvoicesLogic.php index 1c9caddb..b2bac4fd 100644 --- a/app/Classes/Modules/Companies/ControllersLogic/BulkDownloadCustomerInvoicesLogic.php +++ b/app/Classes/Modules/Companies/ControllersLogic/BulkDownloadCustomerInvoicesLogic.php @@ -52,10 +52,16 @@ class BulkDownloadCustomerInvoicesLogic return response()->download($zip_file); } } else { - return response("No invoices found for this customer in the given date range."); + return response()->json([ + 'status' => 'Failed', + 'message' => 'No invoices found for this customer in the given date range.', + ]); } } else { - return response("Customer not found"); + return response()->json([ + 'status' => 'Failed', + 'message' => 'Customer not found.', + ]); } } -} +} \ No newline at end of file diff --git a/resources/assets/vue/components/companies/elements/BulkDownloadInvoiceComponent.vue b/resources/assets/vue/components/companies/elements/BulkDownloadInvoiceComponent.vue new file mode 100644 index 00000000..7b6786b3 --- /dev/null +++ b/resources/assets/vue/components/companies/elements/BulkDownloadInvoiceComponent.vue @@ -0,0 +1,103 @@ + + diff --git a/resources/assets/vue/components/wallets/elements/CustomerTransactionComponent.vue b/resources/assets/vue/components/wallets/elements/CustomerTransactionComponent.vue index f0a4bac8..b2e6a0c2 100644 --- a/resources/assets/vue/components/wallets/elements/CustomerTransactionComponent.vue +++ b/resources/assets/vue/components/wallets/elements/CustomerTransactionComponent.vue @@ -1,11 +1,11 @@