fix(core-flows, dashboard): reservation recreation on fulfilment cancel + allocation button display (#12447)

**What**
- fix recreation of reservations on fulfilment cancel
- fix allocate items button display

---

CLOSES CMRC-1018
This commit is contained in:
Frane Polić
2025-05-12 17:09:23 +00:00
committed by GitHub
parent 728c350c0d
commit 39e5eadefc
5 changed files with 258 additions and 10 deletions
@@ -203,6 +203,7 @@ function prepareInventoryUpdate({
inventory_item_id: string
location_id: string
quantity: BigNumberInput
line_item_id: string
}[] = []
const toUpdate: {
id: string
@@ -236,6 +237,7 @@ function prepareInventoryUpdate({
inventory_item_id: iitem.inventory.id,
location_id: fulfillment.location_id,
quantity: fulfillmentItem.quantity, // <- this is the inventory quantity that is being fulfilled so it menas it does include the required quantity
line_item_id: fulfillmentItem.line_item_id as string,
})
} else {
toUpdate.push({
@@ -338,7 +340,7 @@ export const cancelOrderFulfillmentWorkflow = createWorkflow(
"location_id",
],
variables: {
filter: {
filters: {
line_item_id: lineItemIds,
},
},