@vibe-flats/booking-engine-common-server 1.0.163 → 1.0.164

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.
@@ -17,7 +17,7 @@ const vibePrice = (obj) => {
17
17
  // Additional channel markup, added as prop because its available only on quotes
18
18
  const markupValue = markup ? markup / 100 + 1 : 1;
19
19
  // Apply multiplier: Guesty's approach to monthly pricing
20
- const rent = +(stay.reduce((acc, stay) => acc + stay.price, 0) * markupValue).toFixed(0);
20
+ const rent = Math.ceil(stay.reduce((acc, stay) => acc + stay.price, 0) * markupValue);
21
21
  const cleaning = excludeCleaning ? 0 : unit.prices.cleaningFee;
22
22
  const utilities = (excludeUtilities || unit.prices.excludeUtilities) ? 0 : unit.prices.utilities * nights;
23
23
  const subTotal = rent + utilities + cleaning;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-flats/booking-engine-common-server",
3
- "version": "1.0.163",
3
+ "version": "1.0.164",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",