tripstorekrabi-shared 1.14.4 → 1.14.5
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 +3 -1
package/package.json
CHANGED
package/price.js
CHANGED
|
@@ -330,6 +330,8 @@ export function getExtraPaymentsOperatorPrice(extraPayments) {
|
|
|
330
330
|
let ourCommission = item.price - item.operatorPrice;
|
|
331
331
|
if (ourCommission > 0) {
|
|
332
332
|
price = -ourCommission;
|
|
333
|
+
} else {
|
|
334
|
+
price = 0;
|
|
333
335
|
}
|
|
334
336
|
} else {
|
|
335
337
|
price = item.operatorPrice;
|
|
@@ -406,7 +408,7 @@ export function calculatePhayunPrices(booking, product) {
|
|
|
406
408
|
let cashOnTourAmount = 0;
|
|
407
409
|
let activeExtraPayments = getActiveExtraPayments(Object.entries(booking.extraPayments));
|
|
408
410
|
let bookingType = getBookingType(booking.referenceNumber);
|
|
409
|
-
|
|
411
|
+
|
|
410
412
|
if (
|
|
411
413
|
product.operator.default.invoicing?.operator?.create &&
|
|
412
414
|
product.operator.default.invoicing?.operator?.partners?.[
|