update transaction export

This commit is contained in:
omair saleh
2022-04-28 11:38:30 +08:00
parent 2796fafd5b
commit 35bab66df5
@@ -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;
}
$booking = $transaction->owner->owner;
return [
$booking ? $booking->company->reference : '',
$booking ? $booking->marking : '',