export white form transactions

This commit is contained in:
edmondlang
2024-05-16 10:56:02 +08:00
parent 77df383a74
commit 531b65686f
5 changed files with 138 additions and 7 deletions
@@ -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']);