tripstorekrabi-shared 1.13.50 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/price.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.13.50",
3
+ "version": "1.13.51",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
package/price.js CHANGED
@@ -287,13 +287,14 @@ export function getExtraPaymentsPaidWithPartner(booking, product) {
287
287
  (extraPayment) =>
288
288
  extraPayment.category === item.category && !extraPayment.disabled
289
289
  ) == null
290
- ).forEach((item) => {
290
+ ).map((item) => {
291
291
  if (booking.customerPaymentStatus === "Refunded") {
292
292
  item.price = 0;
293
293
  }
294
294
  if (booking.operatorPaymentStatus === "No Charge") {
295
295
  item.operatorPrice = 0;
296
296
  }
297
+ return item;
297
298
  });
298
299
  }
299
300