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

@@ -17,7 +17,7 @@ export const campaignData = {
budget: {
type: CampaignBudgetType.SPEND,
limit: 1000,
currency_code: "USD",
currency_code: "usd",
},
}
@@ -31,7 +31,7 @@ export const campaignsData = [
budget: {
type: CampaignBudgetType.SPEND,
limit: 1000,
currency_code: "USD",
currency_code: "usd",
},
},
{
@@ -56,7 +56,7 @@ const promotionData = {
target_type: "items",
type: "fixed",
allocation: "each",
currency_code: "USD",
currency_code: "usd",
value: 100,
max_quantity: 100,
target_rules: [
@@ -122,7 +122,7 @@ medusaIntegrationTestRunner({
value: 100,
max_quantity: 100,
target_rules: [],
currency_code: "USD",
currency_code: "usd",
},
rules: [],
}