mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
Fix seat class name assignment to ensure consistency with fare engine resolution
This commit is contained in:
@@ -704,7 +704,12 @@ export class SearchService {
|
|||||||
scheduleId: schedule.id,
|
scheduleId: schedule.id,
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
seatClassName: fare.seatClassName,
|
// Use the input seat class name (sc.name) so it always matches what
|
||||||
|
// buildCoachTypeDetails looks up via coachType.seatClasses. The fare
|
||||||
|
// engine may resolve a nationality-specific variant (nationalitySeatClass)
|
||||||
|
// whose name differs from sc.name, which would cause the class to be
|
||||||
|
// silently dropped from coachTypes and show N/A on the results page.
|
||||||
|
seatClassName: sc.name,
|
||||||
baseFareMinor: fare.totalMinor,
|
baseFareMinor: fare.totalMinor,
|
||||||
displayCurrency: fare.billingCurrency as Currency,
|
displayCurrency: fare.billingCurrency as Currency,
|
||||||
displayAmountMinor: fare.totalInBillingCurrency,
|
displayAmountMinor: fare.totalInBillingCurrency,
|
||||||
|
|||||||
Reference in New Issue
Block a user