merged from server

This commit is contained in:
nathalie 2023-06-07 22:21:21 -03:00
parent 615c9427b9
commit 9bf68050a7
1 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
<?php
use App\Filtros\FiltroDeProducto;
use App\Filtros\FiltroDeSubpedido;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use App\GrupoDeCompra;
@ -26,6 +28,10 @@ Route::middleware('api')->group(function () {
$atributos_a_ocultar = ['telefono', 'cantidad_de_nucleos', 'correo', 'referente_finanzas', 'created_at', 'updated_at'];
return GrupoDeCompra::all()->makeHidden($atributos_a_ocultar)->sortBy('nombre')->groupBy('region');
});
Route::get('/{gdc}/bonos-de-transporte', function($gdc) {
$grupo = GrupoDeCompra::where('id',$gdc)->first();
return ['bdt' => $grupo->calcularCantidadBDT()];
});
});
Route::prefix('pedidos')->group(function () {