@pisell/pisellos 0.0.156 → 0.0.157
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.
|
@@ -110,7 +110,7 @@ export var RulesModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
110
110
|
// 编辑商品已有商品券
|
|
111
111
|
if (productList.every(function (item) {
|
|
112
112
|
var _item$discount_list;
|
|
113
|
-
return item.booking_id && ((_item$discount_list = item.discount_list) === null || _item$discount_list === void 0 ? void 0 : _item$discount_list.length);
|
|
113
|
+
return item.booking_id && (((_item$discount_list = item.discount_list) === null || _item$discount_list === void 0 ? void 0 : _item$discount_list.length) || item.price == 0);
|
|
114
114
|
})) {
|
|
115
115
|
return {
|
|
116
116
|
isAvailable: false,
|
|
@@ -71,7 +71,7 @@ var RulesModule = class extends import_BaseModule.BaseModule {
|
|
|
71
71
|
}
|
|
72
72
|
if (productList.every((item) => {
|
|
73
73
|
var _a;
|
|
74
|
-
return item.booking_id && ((_a = item.discount_list) == null ? void 0 : _a.length);
|
|
74
|
+
return item.booking_id && (((_a = item.discount_list) == null ? void 0 : _a.length) || item.price == 0);
|
|
75
75
|
})) {
|
|
76
76
|
return {
|
|
77
77
|
isAvailable: false,
|