fixed test broken..

This commit is contained in:
Cüneyt Şentürk 2020-12-30 23:19:55 +03:00
parent 881d0acac5
commit c8fd30ec6e

View File

@ -150,7 +150,7 @@ class Revenues extends Controller
$customers = Contact::customer()->enabled()->orderBy('name')->take(setting('default.select_limit'))->pluck('name', 'id');
if ($revenue->contact && !array_key_exists($revenue->contact_id, $vendors)) {
if ($revenue->contact && !array_key_exists($revenue->contact_id, $customers)) {
$customers->put($revenue->contact->id, $revenue->contact->name);
}