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
+20
View File
@@ -52,6 +52,26 @@ class AppRuntime implements RuntimeExtensionInterface
return $this->intlExtension->formatCurrency($amount, 'EUR');
}
/**
* Formats a service price, showing "inkl." for zero-priced (included) services.
*
* @param float|int|null $price The price to format
*
* @return string The formatted price or "inkl." for zero/null prices
*/
public function formatServicePrice(float|int|null $price): string
{
if (null === $price) {
return '';
}
if (0 === $price || 0.0 === $price) {
return 'inkl.';
}
return $this->intlExtension->formatCurrency((float) $price, 'EUR');
}
public function mapStatus(string $status): string
{
$status = strtoupper($status);