mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Add frequency to recurring invoice export
This commit is contained in:
parent
0423e2f9b1
commit
9ff6bdc104
@ -54,6 +54,7 @@ class RecurringInvoiceExport extends BaseExport
|
||||
'po_number' => 'po_number',
|
||||
'private_notes' => 'private_notes',
|
||||
'public_notes' => 'public_notes',
|
||||
'next_send_date' => 'next_send_date',
|
||||
'status' => 'status_id',
|
||||
'tax_name1' => 'tax_name1',
|
||||
'tax_name2' => 'tax_name2',
|
||||
@ -66,6 +67,7 @@ class RecurringInvoiceExport extends BaseExport
|
||||
'currency' => 'currency_id',
|
||||
'vendor' => 'vendor_id',
|
||||
'project' => 'project_id',
|
||||
'frequency' => 'frequency_id'
|
||||
];
|
||||
|
||||
private array $decorate_keys = [
|
||||
@ -162,6 +164,8 @@ class RecurringInvoiceExport extends BaseExport
|
||||
$entity['vendor'] = $invoice->vendor ? $invoice->vendor->name : '';
|
||||
}
|
||||
|
||||
$entity['frequency'] = $invoice->frequencyForKey($invoice->frequency_id);
|
||||
|
||||
return $entity;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user