feat: Completely revamp the pricing module (#7852)
* feat: Completely revamp the pricing module * chore: Update all places to the new pricing interfaces * fix: Remove unnecessary join to itself * chore: Add data migration for existing users * fix: Apply the correct index to price rule
This commit is contained in:
@@ -46,16 +46,8 @@ medusaIntegrationTestRunner({
|
||||
},
|
||||
])
|
||||
|
||||
await pricingModule.createRuleTypes([
|
||||
{
|
||||
name: "customer_group_id",
|
||||
rule_attribute: "customer_group_id",
|
||||
},
|
||||
])
|
||||
|
||||
const [priceSet1, priceSet2] = await pricingModule.createPriceSets([
|
||||
{
|
||||
rules: [{ rule_attribute: "customer_group_id" }],
|
||||
prices: [
|
||||
{
|
||||
amount: 3000,
|
||||
@@ -71,7 +63,6 @@ medusaIntegrationTestRunner({
|
||||
],
|
||||
},
|
||||
{
|
||||
rules: [{ rule_attribute: "customer_group_id" }],
|
||||
prices: [
|
||||
{
|
||||
amount: 400,
|
||||
|
||||
Reference in New Issue
Block a user