FIX: null valor in format
This commit is contained in:
@ -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');
|
||||
|
Reference in New Issue
Block a user