@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
|
@@ -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
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
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
|
]);
|