From faabd2fe3de90a3396573b0cb8c05b12be90ad53 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 28 Apr 2022 11:26:51 +0800 Subject: [PATCH] update transaction export --- app/Classes/Modules/Exports/Services/ExportsTransactions.php | 4 ++++ 1 file changed, 4 insertions(+) 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; + } }