feat: consistent display of included services and prices

This commit is contained in:
Björn Fromme
2026-03-16 12:00:56 +01:00
parent b111a615a9
commit 3dd92ccdb4
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, ',', '.'));
}