Reservation Fixes

This commit is contained in:
Juan Pablo Vial
2025-09-09 16:24:48 -03:00
parent e5cf4e7067
commit e36281d924
6 changed files with 47 additions and 33 deletions

View File

@ -40,7 +40,7 @@ class Reservation extends Common\Ideal\Model
{
$price = 0;
foreach ($this->units as $unit) {
$price += $unit->unit->precio($this->date);
$price += $unit->unit->precio($this->date)?->valor ?? 0;
}
return $price;
}