fix: display pickup street

This commit is contained in:
Björn Fromme
2025-04-08 12:06:14 +02:00
parent 533f820ff3
commit bf4abd7e32
+9 -3
View File
@@ -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, ',', '.')
);
},