feat: simplify pricing and room selection display
This commit is contained in:
@@ -38,12 +38,11 @@ class RoomSelectType extends AbstractType
|
||||
$data = $form->getData();
|
||||
|
||||
$view->vars['label_room'] = $data->label;
|
||||
$view->vars['label_price'] = null;
|
||||
$view->vars['label_price_amount'] = null;
|
||||
$view->vars['is_inquiry'] = Constants::STATUS_ON_REQUEST === $data->status;
|
||||
|
||||
if (null !== $data->price) {
|
||||
$formattedPrice = number_format((float) $data->price, 2, ',', '.');
|
||||
$view->vars['label_price'] = sprintf(' %s € pro Person', $formattedPrice);
|
||||
$view->vars['label_price_amount'] = (float) $data->price;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user