@ecomplus/storefront-components 1.0.0-beta.185 → 1.0.0-beta.186

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-beta.186](https://github.com/ecomplus/storefront/compare/@ecomplus/storefront-components@1.0.0-beta.185...@ecomplus/storefront-components@1.0.0-beta.186) (2025-02-12)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **components/discount-applier:** rounding amount values on apply discount request ([146c19f](https://github.com/ecomplus/storefront/commit/146c19f25c319806da77a3245baa365cc52ed65c))
11
+
6
12
  # [1.0.0-beta.185](https://github.com/ecomplus/storefront/compare/@ecomplus/storefront-components@1.0.0-beta.184...@ecomplus/storefront-components@1.0.0-beta.185) (2024-11-29)
7
13
 
8
14
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecomplus/storefront-components",
3
- "version": "1.0.0-beta.185",
3
+ "version": "1.0.0-beta.186",
4
4
  "description": "Vue components for E-Com Plus Storefront",
5
5
  "main": "dist/storefront-components.min.js",
6
6
  "scripts": {
@@ -150,8 +150,8 @@ export default {
150
150
  const amount = this.amount || {
151
151
  subtotal: this.ecomCart.data.subtotal
152
152
  }
153
- this.localAmountTotal = (amount.subtotal || 0) +
154
- (amount.freight || 0) - this.paymentGatewayDiscount
153
+ this.localAmountTotal = Math.round(((amount.subtotal || 0) +
154
+ (amount.freight || 0) - this.paymentGatewayDiscount) * 100) / 100
155
155
  },
156
156
 
157
157
  parseDiscountOptions (listResult = []) {
@@ -256,7 +256,7 @@ export default {
256
256
  subtotal: this.localAmountTotal,
257
257
  ...this.amount,
258
258
  total: this.localAmountTotal,
259
- discount: this.paymentGatewayDiscount
259
+ discount: Math.round(this.paymentGatewayDiscount * 100) / 100
260
260
  },
261
261
  items: this.ecomCart.data.items,
262
262
  ...data