@ticketboothapp/booking 1.2.85 → 1.2.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ticketboothapp/booking",
3
- "version": "1.2.85",
3
+ "version": "1.2.86",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "**/*.css",
@@ -3536,19 +3536,15 @@ export function ChangeBookingFlow({
3536
3536
  const displayChangeFlowSubtotal = displayedChangeAmounts.subtotal;
3537
3537
  const displayChangeFlowTax = displayedChangeAmounts.tax;
3538
3538
 
3539
- /** When quote is confirmed but BE sends no `priceSummaryLines`, we still show FE-built lines while total is quote-driven — reconcile ticket amounts for tax-included currencies. */
3540
- const selfServeSummaryUsesServerLines =
3541
- suppressSelfServeCurrencyUi &&
3542
- selfServePricingConfirmed &&
3543
- (latestChangeQuote?.serverPreview?.priceSummaryLines?.length ?? 0) > 0;
3544
-
3539
+ /**
3540
+ * Tax-included: scale ticket row $ to match quote/display total. We **always** reconcile after lines are chosen
3541
+ * (including when lines come from `serverPreview.priceSummaryLines`) — server ticket row amounts can still disagree
3542
+ * with `serverDisplay.total` on EUR inclusive pricing.
3543
+ */
3545
3544
  const taxIncludedSelfServeReconciledPriceSummaryLines = useMemo(() => {
3546
3545
  if (!isTaxIncludedInPrice || !originalReceipt || !isCustomerSelfServeChange) {
3547
3546
  return checkoutPriceSummaryLinesForCheckout;
3548
3547
  }
3549
- if (selfServeSummaryUsesServerLines) {
3550
- return checkoutPriceSummaryLinesForCheckout;
3551
- }
3552
3548
  return reconcileTaxIncludedChangeFlowTicketLines(
3553
3549
  checkoutPriceSummaryLinesForCheckout,
3554
3550
  displayChangeFlowProposedTotal,
@@ -3558,7 +3554,6 @@ export function ChangeBookingFlow({
3558
3554
  isTaxIncludedInPrice,
3559
3555
  originalReceipt,
3560
3556
  isCustomerSelfServeChange,
3561
- selfServeSummaryUsesServerLines,
3562
3557
  checkoutPriceSummaryLinesForCheckout,
3563
3558
  displayChangeFlowProposedTotal,
3564
3559
  effectivePromoDiscountAmount,