Removido whereHas porque rompe el metodo

This commit is contained in:
Alejandro Tasistro 2025-06-29 17:50:08 -03:00
parent 11d8bd1920
commit e521b4521f

View file

@ -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');
}