fix(core-flows): pass metadata on order fulfillment create (#9974)
CLOSES SUP-109 CLOSES https://github.com/medusajs/medusa/issues/9964
This commit is contained in:
@@ -372,6 +372,7 @@ medusaIntegrationTestRunner({
|
||||
],
|
||||
no_notification: false,
|
||||
location_id: undefined,
|
||||
metadata: { meta_key: "meta_value" },
|
||||
}
|
||||
|
||||
await createOrderFulfillmentWorkflow(container).run({
|
||||
@@ -406,6 +407,9 @@ medusaIntegrationTestRunner({
|
||||
expect(orderFulfillItemWithInventory.detail.fulfilled_quantity).toEqual(
|
||||
1
|
||||
)
|
||||
expect(orderFulfill.fulfillments[0].metadata).toEqual({
|
||||
meta_key: "meta_value",
|
||||
})
|
||||
|
||||
const reservation = await inventoryModule.listReservationItems({
|
||||
line_item_id: itemWithInventory.id,
|
||||
|
||||
@@ -160,6 +160,7 @@ function prepareFulfillmentData({
|
||||
labels: input.labels ?? [],
|
||||
delivery_address: shippingAddress as any,
|
||||
packed_at: new Date(),
|
||||
metadata: input.metadata,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user