tripstorekrabi-shared 1.13.26 → 1.13.28

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 (3) hide show
  1. package/booking.js +1 -0
  2. package/package.json +1 -1
  3. package/price.js +1 -1
package/booking.js CHANGED
@@ -62,6 +62,7 @@ export function addBookingFromInvoice(firestore, admin, invoice, paymentData, co
62
62
  comment,
63
63
  customerPaymentStatus: "Paid",
64
64
  operatorPaymentStatus: "Pending",
65
+ extraPayments: {},
65
66
  addOns: item.addOns ?? null,
66
67
  labels: ["NEW"],
67
68
  paypalInvoiceId: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.13.26",
3
+ "version": "1.13.28",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
package/price.js CHANGED
@@ -236,7 +236,7 @@ export function getExtraPaymentsPaidWithPartner(booking, product) {
236
236
  (item.price > 0 || item.operatoPrice > 0) &&
237
237
  Object.values(booking.extraPayments).find(
238
238
  (extraPayment) =>
239
- extraPayment.category === item.category && !item.disabled
239
+ extraPayment.category === item.category && !extraPayment.disabled
240
240
  ) == null
241
241
  );
242
242
  }