mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
createGuestBooking (ONE_WAY) and createGuestRoundTripBooking overwrote the authoritative discounted total with an undiscounted client-provided subtotal (per-seat sum or reviewedTotalMinor) whenever one was present, silently dropping a valid promos discount at booking-creation time, even though the same promo was correctly applied in the fare-breakdown/quote step. Only the no-client-subtotal fallback branch subtracted discountMinor. Mirrors the existing usedClientSubtotal fix already present in BookingsService.createOneWayBooking (H-13): subtract discountMinor from the client subtotal before storing it, in ETB and display currency. TRANSIT and ROUND_TRIP_TRANSIT were unaffected since neither overrides with a client subtotal. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>