tripstorekrabi-shared 1.13.33 → 1.13.34
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 +8 -0
package/package.json
CHANGED
package/price.js
CHANGED
|
@@ -152,6 +152,14 @@ export function calculatePartnerNetPrice(booking, product) {
|
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
+
export function calculateTotalOperatorPrice(booking, product) {
|
|
156
|
+
return calculateTotalPrice(booking, product, options = { paymentMode: OPERATOR_PAYMENT_MODE });
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export function calculateTotalPartnerNetPrice(booking, product) {
|
|
160
|
+
return calculateTotalPrice(booking, product, options = { paymentMode: PARTNER_PAYMENT_MODE });
|
|
161
|
+
}
|
|
162
|
+
|
|
155
163
|
export function calculateTotalPrice(booking, product, options = { paymentMode: SELLING_PAYMENT_MODE }) {
|
|
156
164
|
let total = calculateProductPrice(booking, product.pricing, options);
|
|
157
165
|
total += calculateStartEndPointPrice(booking, findStartingPoint(product, booking.startingPointId, false), options);
|