minimo cambio

This commit is contained in:
Alejandro Tasistro 2024-03-19 22:37:00 -03:00
parent 554015a616
commit 4c9ef3f782

View file

@ -44,7 +44,6 @@ class Barrio extends Model
private function calcularTotalConfirmados(Closure $closure = null) : float { private function calcularTotalConfirmados(Closure $closure = null) : float {
if (!$closure) if (!$closure)
$closure = fn($p) => $p->totalChismosa(); $closure = fn($p) => $p->totalChismosa();
return $this->pedidosConfirmados()->sum($closure); return $this->pedidosConfirmados()->sum($closure);
} }
@ -53,7 +52,9 @@ class Barrio extends Model
} }
function totalNoBarriales() : float { function totalNoBarriales() : float {
return $this->calcularTotalConfirmados(fn($p) => $p->total($p->productosNoBarriales())); return $this->calcularTotalConfirmados(
fn($p) => $p->total($p->productosNoBarriales())
);
} }
function totalTransporte() : float { function totalTransporte() : float {