From bb39831c9a63d1dcf9abc97c04f6be4ea07b8c62 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 10 May 2022 15:35:56 +0800 Subject: [PATCH] fix transaction export --- app/Classes/Modules/Exports/Services/ExportsTransactions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Classes/Modules/Exports/Services/ExportsTransactions.php b/app/Classes/Modules/Exports/Services/ExportsTransactions.php index 2e9508c6..2d3c270a 100644 --- a/app/Classes/Modules/Exports/Services/ExportsTransactions.php +++ b/app/Classes/Modules/Exports/Services/ExportsTransactions.php @@ -67,6 +67,9 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping if(!($booking instanceof Booking)){ $booking = $transaction->owner->owner; + if($booking instanceof Transaction){ + $booking = $booking->owner; + } if($booking instanceof Company){ $company = $booking;