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