diff --git a/Modules/Agents/Services/AgentService.php b/Modules/Agents/Services/AgentService.php index a51e5ea..777d7e9 100644 --- a/Modules/Agents/Services/AgentService.php +++ b/Modules/Agents/Services/AgentService.php @@ -194,7 +194,10 @@ class AgentService if (strtolower($upGrant) != strtolower($input['up_grant'])) continue; // skip } - + if (!empty($input['agents_code'])) { // if existing up_geant + if (strtolower($vAgent->code) != strtolower($input['agents_code'])) + continue; // skip + } $finalDataTemp[] = [ 'id' => $vByAgent->id ?? '', 'name' => $vByAgent->agent_name ?? '',