From ade2ebcfc2406e4192b19316dcbdb90aa2385940 Mon Sep 17 00:00:00 2001 From: Aldarien Date: Thu, 4 Jun 2020 11:51:29 -0400 Subject: [PATCH] FIX: gastos en blanco --- src/Productos/Oficina.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;