diff --git a/app/Classes/Modules/Exports/Services/ExportsTransactions.php b/app/Classes/Modules/Exports/Services/ExportsTransactions.php index 432094ef..c4bc2220 100644 --- a/app/Classes/Modules/Exports/Services/ExportsTransactions.php +++ b/app/Classes/Modules/Exports/Services/ExportsTransactions.php @@ -66,12 +66,8 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping $booking = $transaction->owner; } - if($transaction->owner_type === Transaction::class){ - + if($transaction->type === TransactionType::BILL){ $booking = $transaction->owner->owner; - if($booking instanceof Transaction){ - $booking = $booking->owner; - } }