fix(promotion): validate rules accurately when attribute is scoped by context (#8655)

This commit is contained in:
Riqwan Thamir
2024-08-19 15:38:42 +02:00
committed by GitHub
parent a66bd3bd6b
commit 4791d1d775
6 changed files with 66 additions and 9 deletions
@@ -362,7 +362,8 @@ export default class PromotionModuleService
const isPromotionApplicable = areRulesValidForContext(
promotionRules,
applicationContext
applicationContext,
ApplicationMethodTargetType.ORDER
)
if (!isPromotionApplicable) {