diff --git a/app/Classes/Modules/Exports/Services/ExportsWhiteFormTransactions.php b/app/Classes/Modules/Exports/Services/ExportsWhiteFormTransactions.php
new file mode 100644
index 00000000..78579fc1
--- /dev/null
+++ b/app/Classes/Modules/Exports/Services/ExportsWhiteFormTransactions.php
@@ -0,0 +1,99 @@
+request = $request;
+ }
+
+ public function headings(): array
+ {
+ return [
+ 'Bank Name',
+ 'Bank Details',
+ 'Bank Acc No.',
+ 'Order amount',
+ 'Booking Reference',
+ ];
+ }
+
+ /**
+ * @return \Illuminate\Support\Collection|mixed
+ */
+ public function query()
+ {
+ $start_date = $this->request->input('startDate', null);
+ if ($start_date) {
+ $start_date = Carbon::parse($this->request->input('startDate'))->format('Y-m-d');
+ }
+
+ $end_date = $this->request->input('endDate', null);
+ if ($end_date) {
+ $end_date = Carbon::parse($this->request->input('endDate'))->format('Y-m-d');
+ }
+
+ $query = Group::query();
+
+ // todo-new: confirm this
+ // $query->where('type', ::PAYMENT)->where('payment_method', '!=', PaymentMethodType::WALLET);
+ // $query->whereIn('status', [ApprovalStatus::APPROVED, ApprovalStatus::COMPLETED]);
+
+ if ($start_date && $end_date) {
+ $query->whereBetween('created_at', [
+ Carbon::parse($start_date)->format('Y-m-d 0:00:00'),
+ Carbon::parse($end_date)->format('Y-m-d 23:59:59')
+ ]);
+ } elseif ($start_date && !$end_date) {
+ $query->where('created_at', '>=', Carbon::parse($start_date)->format('Y-m-d 0:00:00'));
+ } elseif (!$start_date && $end_date) {
+ $query->where('created_at', '<=', Carbon::parse($end_date)->format('Y-m-d 23:59:59'));
+ }
+
+ return $query;
+ }
+
+ /**
+ * @param Company $group
+ *
+ * @return array
+ */
+ public function map($group): array
+ {
+ $supplier = $group->issuerCompany;
+ $supplerBank = $supplier->banks->first();
+
+ $bank_name = $supplerBank->bank_name;
+ $holder_name = $supplerBank->holder_name;
+ $account_no = $supplerBank->account_no;
+
+ $bookingReference = $group->transactions()->get()->pluck('owner.owner.marking')->toArray();
+
+ return [
+ $bank_name,
+ $holder_name,
+ $account_no,
+ $group->amount,
+ implode(",", $bookingReference)
+ ];
+ }
+}
diff --git a/app/Http/Controllers/Exports/ExportCustomersToExcelController.php b/app/Http/Controllers/Exports/ExportCustomersToExcelController.php
index 0f351c7d..7e484c6c 100644
--- a/app/Http/Controllers/Exports/ExportCustomersToExcelController.php
+++ b/app/Http/Controllers/Exports/ExportCustomersToExcelController.php
@@ -19,6 +19,7 @@ use App\Classes\Modules\Exports\Services\ExportsImportedInvoiceMappeds;
use App\Models\TransactionMappingLog;
use App\Classes\Modules\Exports\Services\ExportsReceiptTransactions;
use App\Classes\Modules\Exports\Services\ExportsImportedReceiptMappeds;
+use App\Classes\Modules\Exports\Services\ExportsWhiteFormTransactions;
class ExportCustomersToExcelController
{
@@ -54,6 +55,13 @@ class ExportCustomersToExcelController
return $response;
}
+ public function whiteFormTransactions(Request $request){
+ $exportsTransactions = new ExportsWhiteFormTransactions($request);
+ $response = $exportsTransactions->download('white-form-transactions.xls', Excel::XLS, ['Content-Type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']);
+ ob_end_clean();
+ return $response;
+ }
+
public function walletTransactions(Request $request){
$exportsTransactions = new ExportsWalletTransactions($request);
$response = $exportsTransactions->download('wallet-transactions.xls', Excel::XLS, ['Content-Type' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet']);
diff --git a/resources/assets/vue/components/bookings/elements/DownloadBillingWithDatesComponent.vue b/resources/assets/vue/components/bookings/elements/DownloadBillingWithDatesComponent.vue
index 99be4562..2d89690e 100644
--- a/resources/assets/vue/components/bookings/elements/DownloadBillingWithDatesComponent.vue
+++ b/resources/assets/vue/components/bookings/elements/DownloadBillingWithDatesComponent.vue
@@ -16,6 +16,12 @@