From 64758834bf55013b4b5c24440f11752906a8f149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Esteban=20S=C3=A1nchez=20Mart=C3=ADnez?= Date: Wed, 29 Apr 2026 17:08:51 +0200 Subject: [PATCH] arreglo ficha poniendo servicios abiertos --- Controller/ReportServicioAT.php | 6 +----- Translation/es_ES.json | 1 - View/ReportServicioAT.html.twig | 18 ------------------ 3 files changed, 1 insertion(+), 24 deletions(-) diff --git a/Controller/ReportServicioAT.php b/Controller/ReportServicioAT.php index 73a0351..f7b9ee2 100644 --- a/Controller/ReportServicioAT.php +++ b/Controller/ReportServicioAT.php @@ -62,9 +62,6 @@ class ReportServicioAT extends Controller /** @var int */ public $totalServices; - /** @var float */ - public $totalNeto = 0.0; - public function getPageData(): array { $data = parent::getPageData(); @@ -95,10 +92,9 @@ public function run(): void protected function loadTotalServices(): void { - $sql = 'SELECT COUNT(*) as total, COALESCE(SUM(neto), 0) as neto FROM serviciosat'; + $sql = 'SELECT COUNT(*) as total FROM serviciosat'; $result = $this->db()->select($sql); $this->totalServices = (int)($result[0]['total'] ?? 0); - $this->totalNeto = (float)($result[0]['neto'] ?? 0.0); } protected function loadServicesByNick(): void diff --git a/Translation/es_ES.json b/Translation/es_ES.json index 4084436..0755942 100644 --- a/Translation/es_ES.json +++ b/Translation/es_ES.json @@ -70,7 +70,6 @@ "services-by-status": "Por estado", "services-by-year": "Servicios por año", "ticket-footer-text": "Texto del pie del ticket", - "total-net": "Neto total", "total-services": "Total de servicios", "verifications": "Verificaciones" } \ No newline at end of file diff --git a/View/ReportServicioAT.html.twig b/View/ReportServicioAT.html.twig index 5c18a39..ada1062 100644 --- a/View/ReportServicioAT.html.twig +++ b/View/ReportServicioAT.html.twig @@ -38,24 +38,6 @@ -
-
-
-
-
-
- {{ trans('total-net') }} -
-
{{ money(fsc.totalNeto) }}
-
-
- -
-
-
-
-
-