@nuskin/ns-product-lib 2.8.0-cx24-3684.5 → 2.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +41 -0
- package/package.json +1 -1
- package/src/product.js +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,44 @@
|
|
1
|
+
# [2.8.0](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.7.1...v2.8.0) (2023-05-02)
|
2
|
+
|
3
|
+
|
4
|
+
### Fix
|
5
|
+
|
6
|
+
* added event pricing (#CX24-3684) ([49d1467](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/49d1467eecb69437adb16e9c85d07c52dca21d26)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
|
7
|
+
* added event pricing (#CX24-3684) ([fca7e9b](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/fca7e9b9f01d99682ddff162db40b4a727d018c1)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
|
8
|
+
* event price #(CX24-3684) ([1ca87d4](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/1ca87d4993f85aefd5f67664d3febae0fb672e6c))
|
9
|
+
* product price (#CX24-3684) ([20fd37a](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/20fd37a7710270e8186ee65070806813e465ce79)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
|
10
|
+
* Rebased to master ([65b08a7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/65b08a7d2ed14ae431ac2a9218ad138716c5ea1c))
|
11
|
+
* remove price as default for setPrice promotion (#CX24-3684) ([2598be7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/2598be77b40fff57344c832bac65f8271c7f5958)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
|
12
|
+
* set original price as wholesale price (#CX24-3684) ([047c01c](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/047c01c04a7ba6b9b1a2a30d997574460fda36ea)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
|
13
|
+
* set original price as wholesale price (#CX24-3684) ([e1d5650](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/e1d5650da1bee59b19977c9af5da58b6ff08485d)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
|
14
|
+
|
15
|
+
### Release
|
16
|
+
|
17
|
+
* Automated changes by GitLab pipeline [skip ci] ([2500244](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/250024436200ef9299c225537185e8001e784a92))
|
18
|
+
* Automated changes by GitLab pipeline [skip ci] ([aed231f](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/aed231f9baf55fe4fd0061e20337a21124dcb4dd))
|
19
|
+
* Automated changes by GitLab pipeline [skip ci] ([6d772f9](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/6d772f957657f24f90b16a182c6ac8649d9478f5))
|
20
|
+
* Automated changes by GitLab pipeline [skip ci] ([2200f5e](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/2200f5ecefceaee439a538ce43025ecef0e4b886))
|
21
|
+
* Automated changes by GitLab pipeline [skip ci] ([d011666](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/d0116663310d182996e0fadd43030e4aae9d749d))
|
22
|
+
* Automated changes by GitLab pipeline [skip ci] ([df963dc](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/df963dc9f542995f60fd7ddd2365c7fb1211c691))
|
23
|
+
* Automated changes by GitLab pipeline [skip ci] ([8f9d9e1](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/8f9d9e1660ba775619b192c8e91920b99e8762e9))
|
24
|
+
* Automated changes by GitLab pipeline [skip ci] ([edf7159](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/edf7159c70c164b5511f8d9a19d49663dad75296))
|
25
|
+
* Automated changes by GitLab pipeline [skip ci] ([0a2a6a0](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/0a2a6a00edb579cf167928e0e9dd2d82089124a3))
|
26
|
+
|
27
|
+
### Update
|
28
|
+
|
29
|
+
* fix promotion price (#CX24-3684) ([7a1a2bc](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/7a1a2bcb4d9f05e57c77f71d5a17dec595578e14)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
|
30
|
+
* fix promotion price (#CX24-3684) ([2dedc98](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/2dedc985d2107872791406aca8a195e0132a597d)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
|
31
|
+
* fix promotion price (#CX24-3684) ([e289808](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/e2898085b94f901e5225890e90db5679f9c66888)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
|
32
|
+
* set discounted price as WWHL for promotion (#CX24-3684) ([4b42a29](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/4b42a298b16dfd361bdd146b3023efd871d7be19)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
|
33
|
+
* set discounted price as WWHL for promotion (#CX24-3684) ([1638ca5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/1638ca52656b6e2d51d31b595b6a880956435533)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
|
34
|
+
|
35
|
+
# [2.8.0-cx24-3684.6](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.8.0-cx24-3684.5...v2.8.0-cx24-3684.6) (2023-04-19)
|
36
|
+
|
37
|
+
|
38
|
+
### Fix
|
39
|
+
|
40
|
+
* remove price as default for setPrice promotion (#CX24-3684) ([2598be7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/2598be77b40fff57344c832bac65f8271c7f5958)), closes [#CX24-3684](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX24-3684)
|
41
|
+
|
1
42
|
# [2.8.0-cx24-3684.5](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.8.0-cx24-3684.4...v2.8.0-cx24-3684.5) (2023-04-18)
|
2
43
|
|
3
44
|
|
package/package.json
CHANGED
package/src/product.js
CHANGED
@@ -262,7 +262,7 @@ const Product = function (productData) {
|
|
262
262
|
|
263
263
|
if (option && !!option.isEqPromotion) {
|
264
264
|
//retain product.price as original price
|
265
|
-
this.setPrice(this.
|
265
|
+
this.setPrice(this.getPricing(priceType));
|
266
266
|
this.setCv(this.getCvWithType(priceType));
|
267
267
|
this.setPv(this.getPvWithType(priceType));
|
268
268
|
this.priceType = priceType;
|