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')}}')
|
fecha: new Date('{{$venta->currentEstado()->fecha->add(new DateInterval('P1D'))->format('Y-m-d')}}')
|
||||||
},
|
},
|
||||||
terreno: {
|
terreno: {
|
||||||
fecha: new Date('{{$terreno->fecha->add(new DateInterval('P1D'))->format('Y-m-d')}}'),
|
@if ($terreno->fecha != null) fecha: new Date('{{$terreno->fecha->add(new DateInterval('P1D'))->format('Y-m-d')}}'),
|
||||||
valor: {{$terreno->valor}},
|
@else fecha: null,
|
||||||
reajustado: {{$terreno->valor * (1+$ipc)}}
|
@endif
|
||||||
|
valor: {{$terreno->valor ?? 0}},
|
||||||
|
reajustado: {{($terreno->valor ?? 0) * (1+$ipc)}}
|
||||||
},
|
},
|
||||||
last: {
|
last: {
|
||||||
dicember: new Date('{{(new DateTimeImmutable())->sub(new DateInterval('P1Y'))->format('Y-11-31')}}'),
|
dicember: new Date('{{(new DateTimeImmutable())->sub(new DateInterval('P1Y'))->format('Y-11-31')}}'),
|
||||||
|
Reference in New Issue
Block a user