@ticketboothapp/booking 1.2.146 → 1.2.147
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
|
@@ -969,18 +969,12 @@ export function AdminChangeBookingFlow({
|
|
|
969
969
|
receiptTax: adminFeAuthoritativeReceipt.tax,
|
|
970
970
|
receiptTotal: adminFeAuthoritativeReceipt.total,
|
|
971
971
|
originalReceipt,
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
serverAmountDue:
|
|
977
|
-
|
|
978
|
-
? latestChangeQuote.serverPreview?.amountDue ?? null
|
|
979
|
-
: null,
|
|
980
|
-
serverUpdatedTotal:
|
|
981
|
-
latestChangeQuote?.pricingVersion === 'booking-amendment-v1'
|
|
982
|
-
? latestChangeQuote.serverPreview?.totalNewBooking ?? null
|
|
983
|
-
: null,
|
|
972
|
+
// This flow is fed by the dedicated admin V2 quote endpoint. If it produced a
|
|
973
|
+
// normalized server preview, render it; do not discard valid data because an
|
|
974
|
+
// optional/versioned metadata string is missing or renamed.
|
|
975
|
+
serverAmendmentLines: latestChangeQuote?.serverPreview?.priceSummaryLines ?? null,
|
|
976
|
+
serverAmountDue: latestChangeQuote?.serverPreview?.amountDue ?? null,
|
|
977
|
+
serverUpdatedTotal: latestChangeQuote?.serverPreview?.totalNewBooking ?? null,
|
|
984
978
|
serverQuoteError: changeQuoteFetchError,
|
|
985
979
|
...{ priceSummaryLinesIncludeTaxRow, isTaxIncludedInPrice, showProviderPricingInlineEditor },
|
|
986
980
|
taxRate: pricingConfig?.taxRate,
|