diff --git a/src/Productos/Oficina.php b/src/Productos/Oficina.php index dedec60..ecd3e8a 100644 --- a/src/Productos/Oficina.php +++ b/src/Productos/Oficina.php @@ -24,7 +24,7 @@ class Oficina extends Producto { } public function map($data): Model { parent::map($data); - if (strpos($this->gastos, '.') === false) { + if (strpos($this->gastos, '.') === false and $data->gastos != '') { $this->gastos = number_format($data->gastos, 0, ',', '.'); } return $this;