fix: revert pickup pricing to match current BusPro behavior
Reverts split pricing calculation to use outbound-only pricing, matching BusPro's current behavior where pickup is only charged when outbound transportation is BUS. - Use pickup->price directly instead of calculateEffectivePrice() - PKW+BUS scenario now correctly charges €0 (matches BusPro loophole) - priceOutbound/priceInbound remain populated for future activation - Updated documentation with current behavior and future plan
This commit is contained in:
@@ -230,8 +230,9 @@ class ParticipantPricingCalculator
|
||||
}
|
||||
}
|
||||
|
||||
// Pickup pricing - only charged when outbound transportation is bus
|
||||
// BusProNet API ignores pickup surcharges for self-organized (PKW) outbound
|
||||
// Pickup pricing - only charged when outbound transportation is BUS
|
||||
// This matches current BusPro behavior where pickup price is only applied for outbound bus
|
||||
// Note: priceOutbound/priceInbound are populated for future split pricing support when BusPro is updated
|
||||
$hasOutboundBus = null !== $participant->transportationOutbound
|
||||
&& 'BUS' === $participant->transportationOutbound->subType;
|
||||
|
||||
|
||||
@@ -129,8 +129,9 @@ class ServicePricingCalculator
|
||||
}
|
||||
}
|
||||
|
||||
// Pickup pricing - only charged when outbound transportation is bus
|
||||
// BusProNet API ignores pickup surcharges for self-organized (PKW) outbound
|
||||
// Pickup pricing - only charged when outbound transportation is BUS
|
||||
// This matches current BusPro behavior where pickup price is only applied for outbound bus
|
||||
// Note: priceOutbound/priceInbound are populated for future split pricing support when BusPro is updated
|
||||
$hasOutboundBus = null !== $participant->transportationOutbound
|
||||
&& 'BUS' === $participant->transportationOutbound->subType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user