Fix(medusa, admin-ui): Order allocations (#3419)

**What**
- Fix `delete-reservation` endpoint to allow deletions of reservations 
- remove `inventory_item_id` from reservation update call to properly update reservation
- invalidate all list caches to properly update order overview after an allocation has been created
- Fix overlap for long product titles in edit-allocation-modal

Fixes CORE-1214
This commit is contained in:
Philip Korsholm authored and GitHub committed 2023-03-09 17:07:49 +00:00
1 parent cdbc5ff3d8
commit 80b95a2300
7 files changed
+107 -69

No files matched your search

@@ -54,8 +54,9 @@ import { IInventoryService } from "../../../../interfaces"
*/
export default async (req, res) => {
const { id } = req.params
const inventoryService: IInventoryService = req.resolve("inventoryService")
const manager: EntityManager = req.resolve("manager")
const inventoryService: IInventoryService =
req.scope.resolve("inventoryService")
const manager: EntityManager = req.scope.resolve("manager")
await manager.transaction(async (manager) => {
await inventoryService.withTransaction(manager).deleteReservationItem(id)