mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
fix transaction export
This commit is contained in:
@@ -62,8 +62,7 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
|
||||
|
||||
|
||||
$booking = $transaction->owner;
|
||||
$company = $booking->company;
|
||||
|
||||
$company = '';
|
||||
if(!($booking instanceof Booking)){
|
||||
$booking = $transaction->owner->owner;
|
||||
|
||||
@@ -77,6 +76,9 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
|
||||
} else {
|
||||
$company = $booking->company;
|
||||
}
|
||||
|
||||
} else {
|
||||
$company = $booking->company;
|
||||
}
|
||||
|
||||
if((!($company instanceof Company) || !($booking instanceof Booking)) && $booking !== null ) dd($company, $booking);
|
||||
|
||||
Reference in New Issue
Block a user