mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update exports to include user and assigned user
This commit is contained in:
parent
3ce403ad73
commit
9839a82109
@ -177,6 +177,14 @@ class CreditExport extends BaseExport
|
|||||||
$entity['credit.status'] = $credit->stringStatus($credit->status_id);
|
$entity['credit.status'] = $credit->stringStatus($credit->status_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in_array('credit.assigned_user_id', $this->input['report_keys'])) {
|
||||||
|
$entity['credit.assigned_user_id'] = $credit->assigned_user ? $credit->assigned_user->present()->name(): '';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (in_array('credit.user_id', $this->input['report_keys'])) {
|
||||||
|
$entity['credit.user_id'] = $credit->user ? $credit->user->present()->name(): '';
|
||||||
|
}
|
||||||
|
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -151,6 +151,14 @@ class InvoiceExport extends BaseExport
|
|||||||
$entity['invoice.auto_bill_enabled'] = $invoice->auto_bill_enabled ? ctrans('texts.yes') : ctrans('texts.no');
|
$entity['invoice.auto_bill_enabled'] = $invoice->auto_bill_enabled ? ctrans('texts.yes') : ctrans('texts.no');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in_array('invoice.assigned_user_id', $this->input['report_keys'])) {
|
||||||
|
$entity['invoice.assigned_user_id'] = $invoice->assigned_user ? $invoice->assigned_user->present()->name(): '';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (in_array('invoice.user_id', $this->input['report_keys'])) {
|
||||||
|
$entity['invoice.user_id'] = $invoice->user ? $invoice->user->present()->name(): '';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}
|
||||||
|
@ -227,6 +227,13 @@ class InvoiceItemExport extends BaseExport
|
|||||||
$entity['invoice.recurring_id'] = $invoice->recurring_invoice->number ?? '';
|
$entity['invoice.recurring_id'] = $invoice->recurring_invoice->number ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in_array('invoice.assigned_user_id', $this->input['report_keys'])) {
|
||||||
|
$entity['invoice.assigned_user_id'] = $invoice->assigned_user ? $invoice->assigned_user->present()->name(): '';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (in_array('invoice.user_id', $this->input['report_keys'])) {
|
||||||
|
$entity['invoice.user_id'] = $invoice->user ? $invoice->user->present()->name(): '';
|
||||||
|
}
|
||||||
|
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}
|
||||||
|
@ -149,6 +149,15 @@ class QuoteExport extends BaseExport
|
|||||||
$entity['quote.invoice'] = $quote->invoice ? $quote->invoice->number : '';
|
$entity['quote.invoice'] = $quote->invoice ? $quote->invoice->number : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in_array('quote.assigned_user_id', $this->input['report_keys'])) {
|
||||||
|
$entity['quote.assigned_user_id'] = $quote->assigned_user ? $quote->assigned_user->present()->name(): '';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (in_array('quote.user_id', $this->input['report_keys'])) {
|
||||||
|
$entity['quote.user_id'] = $quote->user ? $quote->user->present()->name(): '';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -199,6 +199,16 @@ class QuoteItemExport extends BaseExport
|
|||||||
$entity['status'] = $quote->stringStatus($quote->status_id);
|
$entity['status'] = $quote->stringStatus($quote->status_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (in_array('quote.assigned_user_id', $this->input['report_keys'])) {
|
||||||
|
$entity['quote.assigned_user_id'] = $quote->assigned_user ? $quote->assigned_user->present()->name(): '';
|
||||||
|
}
|
||||||
|
|
||||||
|
if (in_array('quote.user_id', $this->input['report_keys'])) {
|
||||||
|
$entity['quote.user_id'] = $quote->user ? $quote->user->present()->name(): '';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return $entity;
|
return $entity;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user