@ -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']))
$finalDataTemp[] = [
'id' => $vByAgent->id ?? '',
'name' => $vByAgent->agent_name ?? '',