Optimizacion de monedas
This commit is contained in:
@ -43,6 +43,9 @@ class Money
|
||||
}
|
||||
public function getIPC(DateTimeInterface $start, DateTimeInterface $end): float
|
||||
{
|
||||
if ($start >= $end) {
|
||||
return 0;
|
||||
}
|
||||
try {
|
||||
return $this->getProvider('ipc')->getVar($start, $end);
|
||||
} catch (EmptyResponse) {
|
||||
|
@ -110,6 +110,7 @@ class Venta extends Service
|
||||
'tipo' => ucwords($unidad->proyectoTipoUnidad->tipoUnidad->descripcion),
|
||||
'descripcion' => $unidad->descripcion,
|
||||
'prorrateo' => $unidad->prorrateo,
|
||||
'valor' => $unidad->valor,
|
||||
'precio' => (isset($unidad->currentPrecio)) ? $unidad->currentPrecio->valor : 0
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user