@pisell/pisellos 2.2.74 → 2.2.75

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.
@@ -1066,7 +1066,7 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
1066
1066
  var main_product_selling_price = product.price;
1067
1067
  if ((product.discount_list || []).some(function (item) {
1068
1068
  return item.type === 'promotion';
1069
- })) {
1069
+ }) || !product.vouchersApplicable) {
1070
1070
  var _product$total, _product$main_product;
1071
1071
  total = (_product$total = product.total) !== null && _product$total !== void 0 ? _product$total : product.origin_total;
1072
1072
  main_product_selling_price = (_product$main_product = product.main_product_selling_price) !== null && _product$main_product !== void 0 ? _product$main_product : main_product_selling_price;
@@ -812,7 +812,7 @@ var RulesModule = class extends import_BaseModule.BaseModule {
812
812
  } else {
813
813
  let total = product.inPromotion ? ((_u = product == null ? void 0 : product._promotion) == null ? void 0 : _u.finalPrice) ?? product.origin_total ?? product.total : product.origin_total ?? product.total;
814
814
  let main_product_selling_price = product.price;
815
- if ((product.discount_list || []).some((item) => item.type === "promotion")) {
815
+ if ((product.discount_list || []).some((item) => item.type === "promotion") || !product.vouchersApplicable) {
816
816
  total = product.total ?? product.origin_total;
817
817
  main_product_selling_price = product.main_product_selling_price ?? main_product_selling_price;
818
818
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.2.74",
4
+ "version": "2.2.75",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",