fix: display pickup street
This commit is contained in:
@@ -281,14 +281,20 @@ class ParticipantType extends AbstractType
|
||||
return null;
|
||||
}
|
||||
|
||||
$pickupLabel = $pickup->city;
|
||||
|
||||
if (null !== $pickup->street) {
|
||||
$pickupLabel .= ' ('.$pickup->street.')';
|
||||
}
|
||||
|
||||
$price = $pickup->price;
|
||||
|
||||
if (null === $price || 0.0 === $price) {
|
||||
return $pickup->city;
|
||||
return $pickupLabel;
|
||||
}
|
||||
|
||||
return sprintf('%s (%s €)',
|
||||
$pickup->city,
|
||||
return sprintf('%s %s€',
|
||||
$pickupLabel,
|
||||
number_format($price, 2, ',', '.')
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user