From e521b4521fa039c2d691454131b68ad77266c0d2 Mon Sep 17 00:00:00 2001 From: ale Date: Sun, 29 Jun 2025 17:50:08 -0300 Subject: [PATCH] Removido whereHas porque rompe el metodo --- app/GrupoDeCompra.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/GrupoDeCompra.php b/app/GrupoDeCompra.php index 0ebac9f..f6dad45 100644 --- a/app/GrupoDeCompra.php +++ b/app/GrupoDeCompra.php @@ -295,9 +295,6 @@ class GrupoDeCompra extends Model public static function barriosMenosPruebaConPedidosAprobados(): Builder { return self::where('nombre', '<>', 'PRUEBA') - ->whereHas('subpedidos', function ($query) { - $query->where('aprobado', true); - }) ->orderBy('region') ->orderBy('nombre'); }