merge axel
This commit is contained in:
@@ -25,16 +25,17 @@ export class DetalleServicioController {
|
|||||||
return this.detalleServicioService.findByDateRange(data.desde, data.hasta);
|
return this.detalleServicioService.findByDateRange(data.desde, data.hasta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@UseGuards(JwtAuthGuard, RolesGuard)
|
||||||
@Get('totales-por-periodo')
|
@Roles(Role.ADMINISTRADOR, Role.SUPER_ADMINISTRADOR)
|
||||||
async getTotalesPorPeriodo(
|
@Get('totales-por-periodo')
|
||||||
@Query('periodoInicio') periodoInicio?: string,
|
async getTotalesPorPeriodo(
|
||||||
@Query('periodoFin') periodoFin?: string,
|
@Query('periodoInicio') periodoInicio?: string,
|
||||||
@Query('servicioId') servicioId?: string,
|
@Query('periodoFin') periodoFin?: string,
|
||||||
) {
|
@Query('servicioId') servicioId?: string,
|
||||||
const inicio = periodoInicio ? parseInt(periodoInicio) : undefined;
|
) {
|
||||||
const fin = periodoFin ? parseInt(periodoFin) : undefined;
|
const inicio = periodoInicio ? parseInt(periodoInicio) : undefined;
|
||||||
const servicio = servicioId ? parseInt(servicioId) : undefined;
|
const fin = periodoFin ? parseInt(periodoFin) : undefined;
|
||||||
return this.detalleServicioService.getTotalesPorServicioYPeriodo(inicio, fin, servicio);
|
const servicio = servicioId ? parseInt(servicioId) : undefined;
|
||||||
}
|
return this.detalleServicioService.getTotalesPorServicioYPeriodo(inicio, fin, servicio);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user