@ticketboothapp/booking 1.2.79 → 1.2.81
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
|
@@ -885,7 +885,8 @@ export function AdminChangeBookingFlow({
|
|
|
885
885
|
/** Public self-serve only: cannot reduce tickets below original counts. Provider-dashboard admins may reduce party size. */
|
|
886
886
|
const changeBookingMinimumQuantities = useMemo(() => {
|
|
887
887
|
if (!isCustomerSelfServeChange || !initialValues?.bookingItems?.length) return undefined;
|
|
888
|
-
|
|
888
|
+
// Any admin-facing change flow should allow lowering quantities.
|
|
889
|
+
if (isAdmin) return undefined;
|
|
889
890
|
const m: Record<string, number> = {};
|
|
890
891
|
for (const item of initialValues.bookingItems) {
|
|
891
892
|
const key = item.category?.trim();
|
|
@@ -3709,11 +3710,9 @@ export function AdminChangeBookingFlow({
|
|
|
3709
3710
|
returnAvailabilityId: selectedReturnOption?.returnAvailabilityId ?? null,
|
|
3710
3711
|
quantities,
|
|
3711
3712
|
addOnSelections,
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
feReceiptTotal: adminFeAuthoritativeReceipt.total,
|
|
3716
|
-
feReceiptLineItems: adminFeAuthoritativeReceipt.lineItems,
|
|
3713
|
+
adminCustomReceiptLines,
|
|
3714
|
+
editableSummaryLineAmountInputs,
|
|
3715
|
+
editableSummaryLineLabelInputs,
|
|
3717
3716
|
useAdminFeAuthoritativeQuote,
|
|
3718
3717
|
}), [
|
|
3719
3718
|
initialValues?.bookingReference,
|
|
@@ -3726,11 +3725,9 @@ export function AdminChangeBookingFlow({
|
|
|
3726
3725
|
selectedReturnOption?.returnAvailabilityId,
|
|
3727
3726
|
quantities,
|
|
3728
3727
|
addOnSelections,
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
adminFeAuthoritativeReceipt.total,
|
|
3733
|
-
adminFeAuthoritativeReceipt.lineItems,
|
|
3728
|
+
adminCustomReceiptLines,
|
|
3729
|
+
editableSummaryLineAmountInputs,
|
|
3730
|
+
editableSummaryLineLabelInputs,
|
|
3734
3731
|
useAdminFeAuthoritativeQuote,
|
|
3735
3732
|
]);
|
|
3736
3733
|
const requiresReturnInChangeFlow = isCustomerSelfServeChange && !!initialValues?.returnAvailabilityId?.trim();
|