feat: consistent display of included services and prices
This commit is contained in:
@@ -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, ',', '.'));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user