@managesome/eposmatic-toolkit 0.2.286 → 0.2.287
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.
|
@@ -136,6 +136,7 @@ function getEditItemProps({ item, orderItemCategoryId, orderItem, offers, isLoya
|
|
|
136
136
|
excludedDiscountRefs = offerExcludedDiscountRefs;
|
|
137
137
|
}
|
|
138
138
|
// TODO: We need to add use case for HalfHalf and Specials
|
|
139
|
+
const isRewardItem = isLoyaltyDiscountApplied || isVoucherDiscountApplied;
|
|
139
140
|
const props = {
|
|
140
141
|
catalogItem: item,
|
|
141
142
|
orderItemId: orderItem._id,
|
|
@@ -145,6 +146,7 @@ function getEditItemProps({ item, orderItemCategoryId, orderItem, offers, isLoya
|
|
|
145
146
|
excludeRefs,
|
|
146
147
|
excludedDiscountRefs,
|
|
147
148
|
zeroPriceRefs,
|
|
149
|
+
...(isRewardItem && { maxQuantity: orderItem.quantity }),
|
|
148
150
|
};
|
|
149
151
|
return props;
|
|
150
152
|
}
|