feat: consistent display of included services and prices
This commit is contained in:
1 parent
e42ef2d3c9
commit
b4c03160ca
11 files changed
+54
-27
No files matched your search
@@ -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