mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Minor fixes for invoice export
This commit is contained in:
parent
ac09d86f68
commit
371f224c24
@ -84,13 +84,14 @@ class ExportController extends BaseController
|
||||
if ($key === 'account' || $key === 'title' || $key === 'multiUser') {
|
||||
continue;
|
||||
}
|
||||
if ($key === 'recurringInvoices') {
|
||||
$key = 'recurring_invoices';
|
||||
}
|
||||
$label = trans("texts.{$key}");
|
||||
$excel->sheet($label, function($sheet) use ($key, $data) {
|
||||
if ($key === 'quotes') {
|
||||
$key = 'invoices';
|
||||
$data['entityType'] = ENTITY_QUOTE;
|
||||
} elseif ($key === 'recurringInvoices') {
|
||||
$key = 'recurring_invoices';
|
||||
}
|
||||
$sheet->loadView("export.{$key}", $data);
|
||||
});
|
||||
|
@ -45,6 +45,8 @@ class InvoicePresenter extends Presenter {
|
||||
return trans('texts.deleted');
|
||||
} elseif ($this->entity->trashed()) {
|
||||
return trans('texts.archived');
|
||||
} elseif ($this->entity->is_recurring) {
|
||||
return trans('texts.active');
|
||||
} else {
|
||||
$status = $this->entity->invoice_status ? $this->entity->invoice_status->name : 'draft';
|
||||
$status = strtolower($status);
|
||||
|
Loading…
x
Reference in New Issue
Block a user