mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:44:32 -04:00
Always include client id number in search
This commit is contained in:
parent
ebeee03694
commit
96cdf617b6
@ -193,7 +193,7 @@ class AccountRepository
|
|||||||
foreach ($clients as $client) {
|
foreach ($clients as $client) {
|
||||||
if ($client->name) {
|
if ($client->name) {
|
||||||
$data['clients'][] = [
|
$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]),
|
'tokens' => implode(',', [$client->name, $client->id_number, $client->vat_number, $client->work_phone]),
|
||||||
'url' => $client->present()->url,
|
'url' => $client->present()->url,
|
||||||
];
|
];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user