From 5fc2f76bc69587114c11d95978ea50ca67c248c0 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 10 May 2022 19:08:11 +0800 Subject: [PATCH] fix transaction export --- app/Classes/Modules/Exports/Services/ExportsTransactions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Modules/Exports/Services/ExportsTransactions.php b/app/Classes/Modules/Exports/Services/ExportsTransactions.php index f660af96..89a765e5 100644 --- a/app/Classes/Modules/Exports/Services/ExportsTransactions.php +++ b/app/Classes/Modules/Exports/Services/ExportsTransactions.php @@ -25,7 +25,7 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping */ public function query() { - return Transaction::whereIn('type', [TransactionType::PAYMENT, TransactionType::BILL])->whereNot('owner_type', Wallet::class); + return Transaction::whereIn('type', [TransactionType::PAYMENT, TransactionType::BILL])->where('owner_type', '!=',Wallet::class); } /**