@ticketboothapp/booking 1.2.119 → 1.2.120

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.119",
3
+ "version": "1.2.120",
4
4
  "private": false,
5
5
  "sideEffects": [
6
6
  "**/*.css",
@@ -4208,18 +4208,12 @@ export function AdminChangeBookingFlow({
4208
4208
  type: 'TAX',
4209
4209
  });
4210
4210
  }
4211
- let subtotal = roundMoney(displayChangeFlowSubtotal + editableSummaryPreSubtotalDelta);
4212
4211
  const tax = roundMoney(displayChangeFlowTax);
4213
4212
  const expectedTotal = roundMoney(displayChangeFlowProposedTotalWithEditableLines);
4214
- const promoAdjustmentTotal = roundMoney(
4215
- lineItems.reduce((sum, line) => (
4216
- isPromoDiscountGiftCardOrVoucherLine(line) ? sum + (Number(line.amount) || 0) : sum
4217
- ), 0)
4218
- );
4219
- const recomputed = roundMoney(subtotal + tax + promoAdjustmentTotal);
4220
- if (!unchangedReceiptAnchor && Math.abs(recomputed - expectedTotal) >= 0.005) {
4221
- subtotal = roundMoney(expectedTotal - tax - promoAdjustmentTotal);
4222
- }
4213
+ // Receipt subtotal means "subtotal before tax" after discount/payment-adjustment lines.
4214
+ // The visible line list already includes promo/voucher/gift-card rows, so deriving from
4215
+ // total minus tax keeps the footer aligned with the receipt totals we send to the API.
4216
+ const subtotal = roundMoney(expectedTotal - tax);
4223
4217
  return {
4224
4218
  subtotal,
4225
4219
  tax,
@@ -4231,10 +4225,7 @@ export function AdminChangeBookingFlow({
4231
4225
  taxIncludedReconciledCheckoutPriceSummaryLines,
4232
4226
  quantities,
4233
4227
  displayChangeFlowTax,
4234
- displayChangeFlowSubtotal,
4235
- editableSummaryPreSubtotalDelta,
4236
4228
  displayChangeFlowProposedTotalWithEditableLines,
4237
- unchangedReceiptAnchor,
4238
4229
  currency,
4239
4230
  t,
4240
4231
  ]);