fix transaction export

This commit is contained in:
omair saleh
2022-05-10 14:49:46 +08:00
parent f6090732d1
commit ea9ca284f2
@@ -63,7 +63,7 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
$booking = $transaction->owner;
$company = $booking->owner;
dump($booking, $company);
if(!($booking instanceof Booking)){
$booking = $transaction->owner->owner;
@@ -76,7 +76,7 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
}
}
dump($booking, $company);
return [
$company->reference,
$booking ? $booking->marking : '',