fix(fulfillment) Variants changed from managed inventory to unmanaged are now fulfillable (#14056)

* (fix) Variants changed from managed inventory to unmanaged are now fulfillable

* Changeset

* Update dull-donkeys-ring.md
This commit is contained in:
Nathan John authored and GitHub committed 2025-11-19 17:01:36 +01:00
1 parent 3a1ed74839
commit 929607f692
2 files changed
+7 -2

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/core-flows": patch
---
fix(fulfillment) Variants changed from managed inventory to unmanaged are now fulfillable
@@ -168,8 +168,8 @@ function prepareRegisterDeliveryData({
const iitem = iitems.find( const iitem = iitems.find(
(i) => i.inventory.id === fitem.inventory_item_id (i) => i.inventory.id === fitem.inventory_item_id
) )
if(iitem)
quantity = MathBN.div(quantity, iitem!.required_quantity) quantity = MathBN.div(quantity, iitem.required_quantity)
} }
return { return {