feat: consistent display of included services and prices

This commit is contained in:
Björn Fromme
2025-12-11 11:17:03 +01:00
parent e42ef2d3c9
commit b4c03160ca
11 changed files with 54 additions and 27 deletions
+5 -1
View File
@@ -76,10 +76,14 @@ class Pickup
{
$label = $this->getLabel();
if (null === $this->price || 0.0 === $this->price) {
if (null === $this->price) {
return $label;
}
if (0.0 === $this->price) {
return sprintf('%s (inkl.)', $label);
}
if ($this->price < 0) {
return sprintf('%s (-%s€ Rabatt)', $label, number_format(abs($this->price), 2, ',', '.'));
}