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
2025-07-31 11:41:07 +02:00
committed by GitHub
parent 54a74b0215
commit 75320e744f
12 changed files with 152 additions and 69 deletions

View File

@@ -240,11 +240,6 @@ medusaIntegrationTestRunner({
operator: "in",
values: ["cus_test"],
},
{
attribute: "currency_code",
operator: "in",
values: ["eur"],
},
],
application_method: {
type: "fixed",
@@ -275,11 +270,6 @@ medusaIntegrationTestRunner({
operator: "in",
values: ["cus_test"],
},
{
attribute: "currency_code",
operator: "in",
values: ["eur"],
},
],
application_method: {
type: "fixed",
@@ -300,7 +290,7 @@ medusaIntegrationTestRunner({
])
const cart = await cartModuleService.createCarts({
currency_code: "eur",
currency_code: "usd",
customer_id: "cus_test",
items: [
{

View File

@@ -191,11 +191,6 @@ medusaIntegrationTestRunner({
operator: "in",
values: ["cus_test"],
},
{
attribute: "currency_code",
operator: "in",
values: ["eur"],
},
],
application_method: {
type: "fixed",
@@ -225,11 +220,6 @@ medusaIntegrationTestRunner({
operator: "in",
values: ["cus_test"],
},
{
attribute: "currency_code",
operator: "in",
values: ["eur"],
},
],
application_method: {
type: "fixed",
@@ -249,7 +239,7 @@ medusaIntegrationTestRunner({
})
const cart = await cartModuleService.createCarts({
currency_code: "eur",
currency_code: "usd",
customer_id: "cus_test",
items: [
{