@ticketboothapp/booking 1.2.82 → 1.2.83
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
|
@@ -5189,7 +5189,16 @@ export function AdminChangeBookingFlow({
|
|
|
5189
5189
|
rate?.baseInDisplayCurrency,
|
|
5190
5190
|
rate?.appliedAdjustments ?? []
|
|
5191
5191
|
);
|
|
5192
|
-
|
|
5192
|
+
const qty = Math.max(0, line.qty);
|
|
5193
|
+
return {
|
|
5194
|
+
line: {
|
|
5195
|
+
category: line.category,
|
|
5196
|
+
qty,
|
|
5197
|
+
itemTotal: line.itemTotal,
|
|
5198
|
+
pricePerUnit: qty > 0 ? roundMoney(line.itemTotal / qty) : 0,
|
|
5199
|
+
},
|
|
5200
|
+
breakdown,
|
|
5201
|
+
};
|
|
5193
5202
|
}),
|
|
5194
5203
|
feeLineItems: feeLineItemsWithAddOns,
|
|
5195
5204
|
returnPriceAdjustment: checkoutReturnLineAmount,
|
|
@@ -5216,7 +5225,16 @@ export function AdminChangeBookingFlow({
|
|
|
5216
5225
|
rate?.baseInDisplayCurrency,
|
|
5217
5226
|
rate?.appliedAdjustments ?? []
|
|
5218
5227
|
);
|
|
5219
|
-
|
|
5228
|
+
const qty = Math.max(0, line.qty);
|
|
5229
|
+
return {
|
|
5230
|
+
line: {
|
|
5231
|
+
category: line.category,
|
|
5232
|
+
qty,
|
|
5233
|
+
itemTotal: line.itemTotal,
|
|
5234
|
+
pricePerUnit: qty > 0 ? roundMoney(line.itemTotal / qty) : 0,
|
|
5235
|
+
},
|
|
5236
|
+
breakdown,
|
|
5237
|
+
};
|
|
5220
5238
|
});
|
|
5221
5239
|
|
|
5222
5240
|
setCheckoutClientSecret(paymentIntent.clientSecret ?? '');
|
|
@@ -4563,7 +4563,16 @@ export function ChangeBookingFlow({
|
|
|
4563
4563
|
rate?.baseInDisplayCurrency,
|
|
4564
4564
|
rate?.appliedAdjustments ?? []
|
|
4565
4565
|
);
|
|
4566
|
-
|
|
4566
|
+
const qty = Math.max(0, line.qty);
|
|
4567
|
+
return {
|
|
4568
|
+
line: {
|
|
4569
|
+
category: line.category,
|
|
4570
|
+
qty,
|
|
4571
|
+
itemTotal: line.itemTotal,
|
|
4572
|
+
pricePerUnit: qty > 0 ? roundMoney(line.itemTotal / qty) : 0,
|
|
4573
|
+
},
|
|
4574
|
+
breakdown,
|
|
4575
|
+
};
|
|
4567
4576
|
});
|
|
4568
4577
|
|
|
4569
4578
|
setCheckoutClientSecret(paymentIntent.clientSecret ?? '');
|