From 28122890af6297de10ae8680684beb52717d25f2 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 10 May 2022 16:24:52 +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 0fa7a515..b82c888f 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([TransactionType::PAYMENT, TransactionType::BILL]); + return Transaction::whereIn('type', [TransactionType::PAYMENT, TransactionType::BILL]); } /**