FIX: No existe valor de terreno en BD
This commit is contained in:
@ -1074,9 +1074,11 @@
|
||||
fecha: new Date('{{$venta->currentEstado()->fecha->add(new DateInterval('P1D'))->format('Y-m-d')}}')
|
||||
},
|
||||
terreno: {
|
||||
fecha: new Date('{{$terreno->fecha->add(new DateInterval('P1D'))->format('Y-m-d')}}'),
|
||||
valor: {{$terreno->valor}},
|
||||
reajustado: {{$terreno->valor * (1+$ipc)}}
|
||||
@if ($terreno->fecha != null) fecha: new Date('{{$terreno->fecha->add(new DateInterval('P1D'))->format('Y-m-d')}}'),
|
||||
@else fecha: null,
|
||||
@endif
|
||||
valor: {{$terreno->valor ?? 0}},
|
||||
reajustado: {{($terreno->valor ?? 0) * (1+$ipc)}}
|
||||
},
|
||||
last: {
|
||||
dicember: new Date('{{(new DateTimeImmutable())->sub(new DateInterval('P1Y'))->format('Y-11-31')}}'),
|
||||
|
Reference in New Issue
Block a user