tripstorekrabi-shared 1.13.49 → 1.13.51
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 +1 -1
- package/price.js +9 -1
package/package.json
CHANGED
package/price.js
CHANGED
|
@@ -287,7 +287,15 @@ export function getExtraPaymentsPaidWithPartner(booking, product) {
|
|
|
287
287
|
(extraPayment) =>
|
|
288
288
|
extraPayment.category === item.category && !extraPayment.disabled
|
|
289
289
|
) == null
|
|
290
|
-
)
|
|
290
|
+
).map((item) => {
|
|
291
|
+
if (booking.customerPaymentStatus === "Refunded") {
|
|
292
|
+
item.price = 0;
|
|
293
|
+
}
|
|
294
|
+
if (booking.operatorPaymentStatus === "No Charge") {
|
|
295
|
+
item.operatorPrice = 0;
|
|
296
|
+
}
|
|
297
|
+
return item;
|
|
298
|
+
});
|
|
291
299
|
}
|
|
292
300
|
|
|
293
301
|
export function calculateAddOnsPrice(booking, product, options = { mode: SELLING_MODE }) {
|