feature/columna-totales #4

Open
atasistro wants to merge 46 commits from feature/columna-totales into master
Showing only changes of commit 4c9ef3f782 - Show all commits

View file

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