Facturacion
This commit is contained in:
@ -97,8 +97,8 @@
|
||||
</div>
|
||||
<div id="propietarios" class="fields"></div>
|
||||
</form>
|
||||
@if ($venta->currentEstado()->fecha->sub(new DateInterval('P1M')) > $venta->proyecto()->terreno->fecha
|
||||
and $IPC->get($venta->proyecto()->terreno->fecha, $venta->currentEstado()->fecha->sub(new DateInterval('P1M'))) === 0.0)
|
||||
@if ($venta->currentEstado()->fecha->sub(new DateInterval('P1M')) > $terreno?->fecha
|
||||
and ($terreno?->valor ?? 0) === 0.0)
|
||||
<div class="ui compact icon error message">
|
||||
<i class="exclamation triangle icon"></i>
|
||||
<div class="content">
|
||||
@ -409,8 +409,7 @@
|
||||
},
|
||||
proyecto: {
|
||||
direccion: '{{$venta->proyecto()->direccion()->simple()}}',
|
||||
terreno: {{(isset($terreno->fecha) and $terreno->fecha >= $lastDic) ?
|
||||
$IPC->readjust($terreno->valor, $terreno->fecha, $venta->currentEstado()->fecha) : 0}},
|
||||
terreno: {{$terreno?->valor ?? 0}}
|
||||
},
|
||||
estadoVenta: {
|
||||
fecha: new Date('{{$venta->currentEstado()->fecha->format('Y-m-d')}}')
|
||||
@ -758,7 +757,7 @@
|
||||
this.update().unidades()
|
||||
this.update().propietarios($(count_propietarios_id).val())
|
||||
this.draw().propietarios()
|
||||
this.unidades.forEach((unidad, idx) => {
|
||||
this.propietarios.forEach((unidad, idx) => {
|
||||
this.update().proporciones(idx)
|
||||
})
|
||||
this.update().facturas()
|
||||
|
Reference in New Issue
Block a user