FIX: No existe valor de terreno en BD

This commit is contained in:
Juan Pablo Vial
2024-11-29 16:15:15 -03:00
parent 1d20d63294
commit f5add0b4c5

View File

@ -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')}}'),