Fix(inventory, stock-location): Remove orphaned location levels and reservations (#3460)

**What**
- Remove related inventory levels and reservation items when a stock location is removed

**How**
- Add bulk deletion methods for both inventory levels and reservation items to the inventory service api
- invoke both on location removal

Fixes CORE-1232
This commit is contained in:
Philip Korsholm
2023-03-15 09:12:46 +00:00
committed by GitHub
parent fe9eea4c18
commit 10bf05c147
8 changed files with 155 additions and 9 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"@medusajs/inventory": patch
"@medusajs/medusa": patch
---
Fix(inventory, medusa): ensure no orphaned reservations and invenotry levels on location removal