Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Controller/ReportServicioAT.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion Translation/es_ES.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
18 changes: 0 additions & 18 deletions View/ReportServicioAT.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,6 @@
</div>
</div>

<div class="col-xl col-md-6 mb-4">
<div class="card border-left-dark shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-dark text-uppercase mb-1">
{{ trans('total-net') }}
</div>
<div class="h4 mb-0 font-weight-bold text-gray-800">{{ money(fsc.totalNeto) }}</div>
</div>
<div class="col-auto">
<i class="fa-solid fa-coins fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>

<div class="col-xl col-md-6 mb-4">
<div class="card border-left-primary shadow h-100 py-2">
<div class="card-body">
Expand Down