From 5e89e9c83071cd0b5c2b41084a1163feda1b828e Mon Sep 17 00:00:00 2001 From: Juan Pablo Vial Date: Fri, 17 Oct 2025 19:45:54 -0300 Subject: [PATCH] FIX: Missing promotion data for reservation --- app/src/Service/Venta/Reservation.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/Service/Venta/Reservation.php b/app/src/Service/Venta/Reservation.php index 59a0ded..a0f0eee 100644 --- a/app/src/Service/Venta/Reservation.php +++ b/app/src/Service/Venta/Reservation.php @@ -254,6 +254,9 @@ class Reservation extends Ideal\Service\API foreach ($model->units as &$unit) { $unit->unit = $this->unitService->getById($unit->unit->id); } + foreach ($model->promotions as &$promotion) { + $promotion = $this->promotionService->getById($promotion->id); + } $model->buyer = $this->personaService->getById($model->buyer->rut); return $model; }