From f091cbd060e3166c68f24cb3d0fe765e746967a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20Lo=CC=88sken?= Date: Wed, 6 Jul 2016 18:30:23 +0200 Subject: [PATCH] Show client name next to invoice no. on dashboard - Fix #949 and resolves #949 - Display client name next to invoice number on dashboard --- app/Models/Invoice.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Models/Invoice.php b/app/Models/Invoice.php index 432e811bff6a..6273ce74e408 100644 --- a/app/Models/Invoice.php +++ b/app/Models/Invoice.php @@ -140,7 +140,9 @@ class Invoice extends EntityModel implements BalanceAffecting */ 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.')'; } /**