minimo cambio
This commit is contained in:
parent
554015a616
commit
4c9ef3f782
1 changed files with 3 additions and 2 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue