Show client name next to invoice no. on dashboard

- Fix #949 and resolves #949
- Display client name next to invoice number on dashboard
This commit is contained in:
Holger Lösken 2016-07-06 18:30:23 +02:00
parent fdb2aefc66
commit f091cbd060

View File

@ -140,7 +140,9 @@ class Invoice extends EntityModel implements BalanceAffecting
*/ */
public function getDisplayName() public function getDisplayName()
{ {
return $this->is_recurring ? trans('texts.recurring') : $this->invoice_number; return $this->is_recurring
? trans('texts.recurring')
: $this->invoice_number.' ('.$this->client->name.')';
} }
/** /**