tripstorekrabi-shared 1.13.37 → 1.13.38

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/booking.js +2 -2
  2. package/package.json +1 -1
package/booking.js CHANGED
@@ -2,7 +2,7 @@ import dayjs from "dayjs";
2
2
  import advancedFormat from 'dayjs/plugin/advancedFormat.js';
3
3
  import utc from "dayjs/plugin/utc.js";
4
4
  import timezone from "dayjs/plugin/timezone.js";
5
- import { calculateTotalPrice } from './price.js';
5
+ import { calculateTotalOperatorPrice } from './price.js';
6
6
 
7
7
  dayjs.extend(advancedFormat);
8
8
  dayjs.extend(utc);
@@ -106,7 +106,7 @@ export function addBookingFromInvoice(firestore, admin, invoice, paymentData, co
106
106
  }
107
107
 
108
108
  if (productSnapshot) {
109
- data.operatorNetPrice = calculateTotalPrice(data, productSnapshot.data(), "operator");
109
+ data.operatorNetPrice = calculateTotalOperatorPrice(data, productSnapshot.data());
110
110
  } else {
111
111
  data.operatorNetPrice = 0;
112
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.13.37",
3
+ "version": "1.13.38",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {