tripstorekrabi-shared 1.13.21 → 1.13.22
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 +2 -2
package/package.json
CHANGED
package/price.js
CHANGED
|
@@ -150,7 +150,7 @@ export function calculateNationalParkFee(booking, product) {
|
|
|
150
150
|
|
|
151
151
|
export function calculateExtraPayments(booking, selling = true, calculationMode = false) {
|
|
152
152
|
let total = 0;
|
|
153
|
-
for (const item of Object.values(booking.extraPayments
|
|
153
|
+
for (const item of Object.values(booking.extraPayments).filter((item) => !item.disabled)) {
|
|
154
154
|
if (selling) {
|
|
155
155
|
if (item.paymentMethod === PAY_ON_TOUR) {
|
|
156
156
|
if (calculationMode && item.category !== OTHER_EXTRA_PAYMENT) {
|
|
@@ -203,7 +203,7 @@ export function getExtraPaymentsPaidWithPartner(booking, product) {
|
|
|
203
203
|
].filter(
|
|
204
204
|
(item) =>
|
|
205
205
|
(item.price > 0 || item.operatoPrice > 0) &&
|
|
206
|
-
Object.values(booking.extraPayments
|
|
206
|
+
Object.values(booking.extraPayments).find(
|
|
207
207
|
(extraPayment) =>
|
|
208
208
|
extraPayment.category === item.category && !item.disabled
|
|
209
209
|
) == null
|