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.
- package/booking.js +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 {
|
|
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 =
|
|
109
|
+
data.operatorNetPrice = calculateTotalOperatorPrice(data, productSnapshot.data());
|
|
110
110
|
} else {
|
|
111
111
|
data.operatorNetPrice = 0;
|
|
112
112
|
}
|