diff --git a/app/Helper/functions.php b/app/Helper/functions.php index abafe62..2be4618 100644 --- a/app/Helper/functions.php +++ b/app/Helper/functions.php @@ -55,6 +55,9 @@ function uf($date, $async = false) { return (object) ['total' => 0]; } function format($tipo, $valor, $format = null, $print = false) { + if ($valor === null) { + $valor = 0; + } if (strtolower($tipo) == 'localdate') { $d = \Carbon\Carbon::parse($valor); $d->locale('es_ES');