mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update payment report export
This commit is contained in:
parent
6a38b7a14a
commit
4840207b3b
@ -49,6 +49,7 @@ class PaymentExport extends BaseExport
|
||||
'transaction_reference' => 'transaction_reference',
|
||||
'type' => 'type_id',
|
||||
'vendor' => 'vendor_id',
|
||||
'invoices' => 'invoices',
|
||||
];
|
||||
|
||||
private array $decorate_keys = [
|
||||
@ -59,6 +60,7 @@ class PaymentExport extends BaseExport
|
||||
'currency',
|
||||
'exchange_currency',
|
||||
'type',
|
||||
'invoices',
|
||||
];
|
||||
|
||||
public function __construct(Company $company, array $input)
|
||||
@ -154,6 +156,8 @@ class PaymentExport extends BaseExport
|
||||
$entity['gateway'] = $payment->gateway_type ? $payment->gateway_type->name : 'Unknown Type';
|
||||
}
|
||||
|
||||
$entity['invoices'] = $payment->invoices()->exists() ? $payment->invoices->pluck('number')->implode(',') : '';
|
||||
|
||||
return $entity;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user