akaunting 3.0 (the last dance)
This commit is contained in:
@@ -26,6 +26,7 @@ class InvoiceTransactions extends Export implements WithColumnFormatting
|
||||
$model->account_name = $model->account->name;
|
||||
$model->category_name = $model->category->name;
|
||||
$model->contact_email = $model->contact->email;
|
||||
$model->transaction_number = $model->number;
|
||||
|
||||
return parent::map($model);
|
||||
}
|
||||
@@ -34,6 +35,7 @@ class InvoiceTransactions extends Export implements WithColumnFormatting
|
||||
{
|
||||
return [
|
||||
'invoice_number',
|
||||
'transaction_number',
|
||||
'paid_at',
|
||||
'amount',
|
||||
'currency_code',
|
||||
|
||||
@@ -11,7 +11,7 @@ class Invoices extends Export implements WithColumnFormatting
|
||||
{
|
||||
public function collection()
|
||||
{
|
||||
return Model::with('category')->invoice()->collectForExport($this->ids, ['document_number' => 'desc']);
|
||||
return Model::with('category')->invoice()->isNotRecurring()->collectForExport($this->ids, ['document_number' => 'desc']);
|
||||
}
|
||||
|
||||
public function map($model): array
|
||||
|
||||
Reference in New Issue
Block a user