fix transaction export

This commit is contained in:
omair saleh
2022-05-10 14:50:37 +08:00
parent ea9ca284f2
commit 9e7216d545
@@ -62,8 +62,8 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
$booking = $transaction->owner;
$company = $booking->owner;
dump($booking, $company);
$company = $booking->company;
if(!($booking instanceof Booking)){
$booking = $transaction->owner->owner;
@@ -72,7 +72,7 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
$company = $booking;
$booking = null;
} else {
$company = $booking->owner;
$company = $booking->company;
}
}