fix: omit zero-amount surcharges from the booking summary

This commit is contained in:
fromme committed 2026-10-09 12:22:32 +02:00
1 parent 0afa4f4855
commit 553ec901f3
2 files changed
+49

No files matched your search

+5
View File
@@ -102,6 +102,11 @@ class BookingPricingAssembler
$surchargePricing = [];
foreach ($bookingData->surcharges as $surcharge) {
// BusPro reports a Zuschlag line even when it nets to nothing, e.g. Stornokosten of 0,00 €
if (0.0 === round($surcharge->totalPrice ?? 0.0, 2)) {
continue;
}
$surchargePricing[] = [
'label' => $surcharge->label ?? 'unbekannt',
'participantCount' => count($surcharge->mapping),