1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Always include client id number in search

This commit is contained in:
Hillel Coren 2018-03-25 10:14:14 +03:00
parent ebeee03694
commit 96cdf617b6

View File

@ -193,7 +193,7 @@ class AccountRepository
foreach ($clients as $client) {
if ($client->name) {
$data['clients'][] = [
'value' => ($account->clientNumbersEnabled() && $client->id_number ? $client->id_number . ': ' : '') . $client->name,
'value' => ($client->id_number ? $client->id_number . ': ' : '') . $client->name,
'tokens' => implode(',', [$client->name, $client->id_number, $client->vat_number, $client->work_phone]),
'url' => $client->present()->url,
];