fix transaction export

This commit is contained in:
omair saleh
2022-05-10 19:06:52 +08:00
parent 0da50ebae6
commit bb5a2b8259
@@ -25,7 +25,7 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
*/ */
public function query() public function query()
{ {
return Transaction::whereIn('type', [TransactionType::PAYMENT, TransactionType::BILL]); return Transaction::whereIn('type', [TransactionType::PAYMENT, TransactionType::BILL])->whereNot('owner_type', Wallet::class);
} }
/** /**