From 6db687ac99d6302e385cf436730b8ebe57be0231 Mon Sep 17 00:00:00 2001 From: omair saleh Date: Thu, 28 Apr 2022 11:30:35 +0800 Subject: [PATCH] update transaction export --- .../Modules/Exports/Services/ExportsTransactions.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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; - } }