FIX: Missing promotion data for reservation
This commit is contained in:
@ -254,6 +254,9 @@ class Reservation extends Ideal\Service\API
|
|||||||
foreach ($model->units as &$unit) {
|
foreach ($model->units as &$unit) {
|
||||||
$unit->unit = $this->unitService->getById($unit->unit->id);
|
$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);
|
$model->buyer = $this->personaService->getById($model->buyer->rut);
|
||||||
return $model;
|
return $model;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user