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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/price.js +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.13.33",
3
+ "version": "1.13.34",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
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);