diff --git a/app/Classes/Modules/Exports/Services/ExportsTransactions.php b/app/Classes/Modules/Exports/Services/ExportsTransactions.php index 02232268..432094ef 100644 --- a/app/Classes/Modules/Exports/Services/ExportsTransactions.php +++ b/app/Classes/Modules/Exports/Services/ExportsTransactions.php @@ -67,7 +67,11 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping } if($transaction->owner_type === Transaction::class){ + $booking = $transaction->owner->owner; + if($booking instanceof Transaction){ + $booking = $booking->owner; + } }