tripstorekrabi-shared 1.13.15 → 1.13.16

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 +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tripstorekrabi-shared",
3
- "version": "1.13.15",
3
+ "version": "1.13.16",
4
4
  "description": "Shared library for Trip Store Krabi",
5
5
  "author": "Stefan Sommer <tonprince@gmail.com>",
6
6
  "repository": {
package/price.js CHANGED
@@ -117,7 +117,7 @@ export function getTotalAmountToBeReceived(booking) {
117
117
  if (booking.customerPaymentStatus === "Refunded") {
118
118
  total = 0;
119
119
  } else {
120
- total = calculateExtraPayments(booking, true);
120
+ total = booking.partnerNetPrice + calculateExtraPayments(booking, true);
121
121
  }
122
122
 
123
123
  return total;
@@ -129,7 +129,7 @@ export function getTotalOperatorNetPrice(booking) {
129
129
  if (booking.operatorPaymentStatus === "No Charge") {
130
130
  total = 0;
131
131
  } else {
132
- total = calculateExtraPayments(booking, false);
132
+ total = booking.operatorNetPrice + calculateExtraPayments(booking, false);
133
133
  }
134
134
 
135
135
  return total;