@freedom_sky/feige-lib 4.54.1 → 4.54.2
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/dist/index.js +2 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -114,6 +114,8 @@ exports.calcTotalPrice = calcTotalPrice;
|
|
|
114
114
|
*/
|
|
115
115
|
function calcContentPrice(_a) {
|
|
116
116
|
var orderContentItem = _a.orderContentItem, buffetItem = _a.buffetItem, orderType = _a.orderType, adultNum = _a.adultNum, childNum = _a.childNum, contents = _a.contents;
|
|
117
|
+
if (orderContentItem.retreated)
|
|
118
|
+
return 0;
|
|
117
119
|
if (orderType === order_enum_1.OrderTypeEnum.Buffet) {
|
|
118
120
|
var buffetDishItem = index_1.getDishItemInBuffet({ dishId: orderContentItem.dishSnapshot._id, buffet: buffetItem });
|
|
119
121
|
if (buffetDishItem) {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -144,6 +144,7 @@ export function calcContentPrice({
|
|
|
144
144
|
childNum: number;
|
|
145
145
|
contents: Content[];
|
|
146
146
|
}): number {
|
|
147
|
+
if(orderContentItem.retreated) return 0;
|
|
147
148
|
if (orderType === OrderTypeEnum.Buffet) {
|
|
148
149
|
const buffetDishItem = getDishItemInBuffet({ dishId: orderContentItem.dishSnapshot._id, buffet: buffetItem });
|
|
149
150
|
if (buffetDishItem) {
|