mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
update transaction export
This commit is contained in:
@@ -60,17 +60,7 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
|
||||
6 => 'EXPIRED'
|
||||
];
|
||||
|
||||
$booking = null;
|
||||
|
||||
if($transaction->owner_type === Booking::class){
|
||||
$booking = $transaction->owner;
|
||||
}
|
||||
|
||||
if($transaction->type === TransactionType::BILL){
|
||||
$booking = $transaction->owner->owner;
|
||||
}
|
||||
|
||||
|
||||
return [
|
||||
$booking ? $booking->company->reference : '',
|
||||
$booking ? $booking->marking : '',
|
||||
|
||||
Reference in New Issue
Block a user