fix(types,utils,promotion): Move from total to original_total to resolve edge case for adjustments calculation (#13106)

* Move from total to original_total to resolve edge case in adjustment calculation

* Added changeset

* Added test case for correction

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
scherddelandOli Juhl authored and GitHub committed 2025-08-01 12:52:04 +02:00
1 parent b37a87c355
commit 9766570827
5 files changed
+156 -9

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
---
"@medusajs/promotion": patch
"@medusajs/types": patch
"@medusajs/utils": patch
---
Moved calculation logic from total to original_total to ensure consistent base values