fix(order, core-flows): Tax inclusive order line item adjustments (#12875)

* fix(order, core-flows): Tax inclusive order line item adjustments

* fix test
This commit is contained in:
Oli Juhl
2025-07-06 22:32:17 +02:00
committed by GitHub
parent 2f70f13351
commit a7700f116f
7 changed files with 391 additions and 28 deletions

View File

@@ -1,6 +1,6 @@
import { createOrderChangeWorkflow } from "@medusajs/core-flows"
import { medusaIntegrationTestRunner } from "@medusajs/test-utils"
import { IOrderModuleService, OrderDTO } from "@medusajs/types"
import { createOrderChangeWorkflow } from "@medusajs/core-flows"
import { Modules } from "@medusajs/utils"
import {
adminHeaders,
@@ -192,6 +192,7 @@ medusaIntegrationTestRunner({
description: "VIP discount",
promotion_id: expect.any(String),
code: "VIP_25 ETH",
is_tax_inclusive: false,
raw_amount: {
value: "5e-18",
precision: 20,