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:
@@ -25,7 +25,7 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
|
||||
*/
|
||||
public function query()
|
||||
{
|
||||
return Transaction::where('type', TransactionType::BILL);
|
||||
return Transaction::query();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -60,7 +60,12 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
|
||||
6 => 'EXPIRED'
|
||||
];
|
||||
|
||||
|
||||
$booking = $transaction->owner->owner;
|
||||
if($transaction->owner !== Booking::class){
|
||||
dump($transaction);
|
||||
}
|
||||
|
||||
return [
|
||||
$booking ? $booking->company->reference : '',
|
||||
$booking ? $booking->marking : '',
|
||||
|
||||
Reference in New Issue
Block a user