FIX: uf/m2 cuando m2 es 0
This commit is contained in:
@ -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 = [
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user