Precio = valor propiedad o precio
This commit is contained in:
@ -151,7 +151,7 @@
|
||||
terreno: {{$IPC->readjust($venta->proyecto()->terreno->valor, $venta->proyecto()->terreno->date, $venta->currentEstado()->fecha)}},
|
||||
uf: {{$UF->get($venta->currentEstado()->fecha)}},
|
||||
unidades: JSON.parse('{!! json_encode(array_map(function(Incoviba\Model\Venta\PropiedadUnidad $unidad) use ($venta, $UF, $format) {
|
||||
$precio = $unidad->valor;
|
||||
$precio = ($unidad->valor > 0) ? $unidad->valor : $unidad->precio($venta->currentEstado())->valor;
|
||||
return [
|
||||
'pu_id' => $unidad->pu_id,
|
||||
'descripcion' => ucwords($unidad->proyectoTipoUnidad->tipoUnidad->descripcion) . ' ' . $unidad->descripcion,
|
||||
|
Reference in New Issue
Block a user