fix: omit zero-amount surcharges from the booking summary
This commit is contained in:
1 parent
0afa4f4855
commit
553ec901f3
2 files changed
+49
No files matched your search
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user