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) }}
-
-
- -
-
-
-
-
-