Merge branch 'vapor/production' of https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0 into vapor/staging

This commit is contained in:
Edmond Lang
2025-07-01 12:34:22 +08:00
2 changed files with 33 additions and 7 deletions
@@ -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