mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-05 11:10:16 -04:00
Quick Search in Top-Navigation: Hide deleted Customers #2029
This commit is contained in:
parent
c85a3dc663
commit
d9b4dced25
@ -194,6 +194,7 @@ class AccountRepository
|
||||
}
|
||||
|
||||
foreach ($clients as $client) {
|
||||
if (! $client->is_deleted) {
|
||||
if ($client->name) {
|
||||
$data['clients'][] = [
|
||||
'value' => ($client->id_number ? $client->id_number . ': ' : '') . $client->name,
|
||||
@ -224,6 +225,7 @@ class AccountRepository
|
||||
'url' => $client->present()->url,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($client->invoices as $invoice) {
|
||||
$entityType = $invoice->getEntityType();
|
||||
|
Loading…
x
Reference in New Issue
Block a user