From 2d0221032bb5c0866e2f375404f69794088d9b1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20S=C3=A1nchez=20Mart=C3=ADnez?= Date: Wed, 6 May 2026 12:30:47 +0200 Subject: [PATCH] =?UTF-8?q?A=C3=B1adido=20c=C3=A1lculo=20de=20porcentaje?= =?UTF-8?q?=20en=20el=20informe=20de=20servicios?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Se ha incorporado una nueva columna para mostrar el porcentaje de servicios en relación al total. Modificado el archivo ReportServicioAT.html.twig para incluir el cálculo y la visualización del porcentaje. --- View/ReportServicioAT.html.twig | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/View/ReportServicioAT.html.twig b/View/ReportServicioAT.html.twig index d86acb3..4cd34d8 100644 --- a/View/ReportServicioAT.html.twig +++ b/View/ReportServicioAT.html.twig @@ -194,6 +194,7 @@ {{ trans('status') }} {{ trans('quantity') }} + {{ trans('percentage') }} % {{ trans('net') }} @@ -213,11 +214,14 @@ {{ row.total }} + + {{ fsc.totalServices > 0 ? ((row.total / fsc.totalServices) * 100)|number_format(1) ~ ' %' : '0 %' }} + {{ money(row.neto) }} {% else %} - + {{ trans('no-data') }}