fix(promotion): check currency when computing actions for promotions (#13084)

* fix(promotion): check currency when computing actions for promotions

* chore: fix tests

* chore: fix more specs
This commit is contained in:
Riqwan Thamir authored and GitHub committed 2025-07-31 11:41:07 +02:00
1 parent 54a74b0215
commit 75320e744f
12 files changed
+152 -69

No files matched your search

@@ -520,13 +520,17 @@ export default class PromotionModuleService
continue
}
const isCurrencyCodeValid =
!isDefined(applicationMethod.currency_code) ||
applicationContext.currency_code === applicationMethod.currency_code
const isPromotionApplicable = areRulesValidForContext(
promotionRules,
applicationContext,
ApplicationMethodTargetType.ORDER
)
if (!isPromotionApplicable) {
if (!isPromotionApplicable || !isCurrencyCodeValid) {
continue
}