mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-24 15:04:19 +00:00
Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0 into vapor/staging
This commit is contained in:
@@ -155,12 +155,19 @@ class ExportCustomersToExcelController
|
||||
$exportsTransactions = new ExportsWalletTransactions($request);
|
||||
|
||||
$type = $request->get('type');
|
||||
$exportFileName = match ($type) {
|
||||
'payment' => 'wallet-payment-transactions.xls',
|
||||
'credit_note' => 'wallet-credit-note-transactions.xls',
|
||||
'debit_note' => 'wallet-debit-note-transactions.xls',
|
||||
default => 'wallet-topup-transactions.xls',
|
||||
};
|
||||
switch ($type) {
|
||||
case 'payment':
|
||||
$exportFileName = 'wallet-payment-transactions.xls';
|
||||
break;
|
||||
case 'credit_note':
|
||||
$exportFileName = 'wallet-credit-note-transactions.xls';
|
||||
break;
|
||||
case 'debit_note':
|
||||
$exportFileName = 'wallet-debit-note-transactions.xls';
|
||||
break;
|
||||
default:
|
||||
$exportFileName = 'wallet-topup-transactions.xls';
|
||||
}
|
||||
|
||||
$filesystemDriver = Storage::getDefaultDriver();
|
||||
if ($filesystemDriver === 's3') {
|
||||
@@ -171,7 +178,7 @@ class ExportCustomersToExcelController
|
||||
return $response;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function invoiceTransactions(Request $request){
|
||||
$exportsTransactions = new ExportsInvoiceTransactions($request);
|
||||
$exportFileName = 'invoice-transactions.xls';
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user