FIX: uf/m2 cuando m2 es 0

This commit is contained in:
2020-06-03 22:05:19 -04:00
parent 080ed4553e
commit 5864efd24f
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class Bodega extends Producto {
];
public function uf_m2() {
return $this->arriendo / $this->superficie;
return $this->arriendo / ($this->superficie ?? 1);
}
public function getFicha(): array {
$properties = [

View File

@ -13,7 +13,7 @@ class Oficina extends Producto {
];
public function uf_m2() {
return $this->arriendo / $this->m2;
return $this->arriendo / ($this->m2 ?? 1);
}
public function privados() {
if ($this->privados == 0) {