mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-07 10:01:47 -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) {
|
foreach ($clients as $client) {
|
||||||
|
if (! $client->is_deleted) {
|
||||||
if ($client->name) {
|
if ($client->name) {
|
||||||
$data['clients'][] = [
|
$data['clients'][] = [
|
||||||
'value' => ($client->id_number ? $client->id_number . ': ' : '') . $client->name,
|
'value' => ($client->id_number ? $client->id_number . ': ' : '') . $client->name,
|
||||||
@ -224,6 +225,7 @@ class AccountRepository
|
|||||||
'url' => $client->present()->url,
|
'url' => $client->present()->url,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($client->invoices as $invoice) {
|
foreach ($client->invoices as $invoice) {
|
||||||
$entityType = $invoice->getEntityType();
|
$entityType = $invoice->getEntityType();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user