Quick Search in Top-Navigation: Hide deleted Customers #2029

This commit is contained in:
Hillel Coren 2018-04-12 22:51:10 +03:00
parent c85a3dc663
commit d9b4dced25

View File

@ -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();