From bd8df68e860cb848b5ff72ade832a8d9736f4545 Mon Sep 17 00:00:00 2001 From: nocode Date: Wed, 17 Jul 2024 15:45:21 +0700 Subject: [PATCH] fix add customer --- Modules/Agents/Services/AgentService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Agents/Services/AgentService.php b/Modules/Agents/Services/AgentService.php index d54477c..239e4ff 100644 --- a/Modules/Agents/Services/AgentService.php +++ b/Modules/Agents/Services/AgentService.php @@ -187,7 +187,7 @@ class AgentService continue; // skip agent root if (!empty($input['up_grant'])) { // if existing up_geant - if ($upGrant != $input['up_grant']) + if (strtolower($upGrant) != strtolower($input['up_grant'])) continue; // skip } @@ -286,7 +286,7 @@ class AgentService $upGrant = $agentParent->code ?? null; } if (!empty($input['up_grant'])) { // if existing up_geant - if ($upGrant != $input['up_grant']) + if (strtolower($upGrant) != strtolower($input['up_grant'])) continue; // skip } // lay danh sach 2 con cua parent