FIX: IPC y factura
This commit is contained in:
@ -62,7 +62,8 @@
|
||||
</div>
|
||||
@endif
|
||||
</form>
|
||||
@if ($IPC->get($venta->proyecto()->terreno->fecha, $venta->currentEstado()->fecha) === 0.0)
|
||||
@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)
|
||||
<div class="ui compact icon error message">
|
||||
<i class="exclamation triangle icon"></i>
|
||||
<div class="content">
|
||||
@ -314,7 +315,7 @@
|
||||
return
|
||||
}
|
||||
const idx = this.unidades.findIndex(unidad => unidad.pid === json.propiedad_unidad_id)
|
||||
this.unidades[idx].precio = parseInt(json.input.valor)
|
||||
this.unidades[idx].precio = parseFloat(json.input.valor)
|
||||
this.unidades[idx].base = parseFloat(json.input.valor * this.unidades[idx].base / old_value)
|
||||
this.build()
|
||||
})
|
||||
|
Reference in New Issue
Block a user