update transaction export

This commit is contained in:
omair saleh
2022-04-28 11:09:16 +08:00
parent 058d994965
commit b626ae5b05
@@ -58,12 +58,17 @@ class ExportsTransactions implements FromQuery, WithHeadingRow, WithMapping
6 => 'EXPIRED'
];
$booking = $transaction->type === 1 ? $transaction->owner : $transaction->owner->owner;
return [
$booking ? $booking->company->reference : '',
$booking ? $booking->marking : '',
$transaction->bill_no,
$transaction->owner_id,
$transaction->owner_type,
$transactionTypes[$transaction->type],
$transaction->issuer,
$transaction->issuerCompany->name,
$transaction->reciver,
$transaction->currency_id === 1 ? 'MYR' : 'RMB',
$transaction->amount,