@ticketboothapp/booking 1.2.116 → 1.2.117

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.116",
3
+ "version": "1.2.117",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "**/*.css",
@@ -4211,7 +4211,7 @@ export function AdminChangeBookingFlow({
4211
4211
  ), 0)
4212
4212
  );
4213
4213
  const recomputed = roundMoney(subtotal + tax + promoAdjustmentTotal);
4214
- if (Math.abs(recomputed - expectedTotal) >= 0.005) {
4214
+ if (!unchangedReceiptAnchor && Math.abs(recomputed - expectedTotal) >= 0.005) {
4215
4215
  subtotal = roundMoney(expectedTotal - tax - promoAdjustmentTotal);
4216
4216
  }
4217
4217
  return {
@@ -4228,6 +4228,7 @@ export function AdminChangeBookingFlow({
4228
4228
  displayChangeFlowSubtotal,
4229
4229
  editableSummaryPreSubtotalDelta,
4230
4230
  displayChangeFlowProposedTotalWithEditableLines,
4231
+ unchangedReceiptAnchor,
4231
4232
  currency,
4232
4233
  t,
4233
4234
  ]);
@@ -6195,13 +6196,15 @@ export function AdminChangeBookingFlow({
6195
6196
  ? t('booking.totalOwedForBookingChange')
6196
6197
  : 'Total owed for booking difference'
6197
6198
  }
6198
- subtotal={adminFeAuthoritativeReceipt.subtotal}
6199
+ subtotal={unchangedReceiptAnchor ? undefined : adminFeAuthoritativeReceipt.subtotal}
6199
6200
  taxAmount={
6200
- !isTaxIncludedInPrice &&
6201
- adminFeAuthoritativeReceipt.tax > 0 &&
6202
- !priceSummaryLinesIncludeTaxRow
6203
- ? adminFeAuthoritativeReceipt.tax
6204
- : 0
6201
+ unchangedReceiptAnchor
6202
+ ? 0
6203
+ : !isTaxIncludedInPrice &&
6204
+ adminFeAuthoritativeReceipt.tax > 0 &&
6205
+ !priceSummaryLinesIncludeTaxRow
6206
+ ? adminFeAuthoritativeReceipt.tax
6207
+ : 0
6205
6208
  }
6206
6209
  taxRate={pricingConfig?.taxRate}
6207
6210
  currency={currency}