diff --git a/app/Models/Products/CommonCode.php b/app/Models/Products/CommonCode.php index 36dc1c1..0ce13e8 100644 --- a/app/Models/Products/CommonCode.php +++ b/app/Models/Products/CommonCode.php @@ -59,7 +59,7 @@ public static function getLabel(string $codeGroup, ?string $code): string return ''; } - $commonCode = static::withoutGlobalScopes() + $commonCode = static::query() ->where('code_group', $codeGroup) ->where('code', $code) ->where('is_active', true) @@ -76,7 +76,7 @@ public static function getLabel(string $codeGroup, ?string $code): string */ public static function getCodeMap(string $codeGroup): array { - return static::withoutGlobalScopes() + return static::query() ->where('code_group', $codeGroup) ->where('is_active', true) ->orderBy('sort_order')