fix(core-flows): allow backorder (#8721)
This commit is contained in:
committed by
GitHub
parent
bc74e381ad
commit
cad6dae231
@@ -90,6 +90,7 @@ export const prepareConfirmInventoryInput = (data: {
|
||||
allVariants.set(variants.id, {
|
||||
id: variants.id,
|
||||
manage_inventory: variants.manage_inventory,
|
||||
allow_backorder: variants.allow_backorder,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -225,6 +225,7 @@ export const createOrderFulfillmentWorkflow = createWorkflow(
|
||||
"currency_code",
|
||||
"items.*",
|
||||
"items.variant.manage_inventory",
|
||||
"items.variant.allow_backorder",
|
||||
"shipping_address.*",
|
||||
"shipping_methods.shipping_option_id",
|
||||
"shipping_methods.data",
|
||||
|
||||
@@ -148,7 +148,6 @@ export const confirmReturnReceiveWorkflow = createWorkflow(
|
||||
"canceled_at",
|
||||
"items.*",
|
||||
"items.item.variant_id",
|
||||
"items.item.variant.id",
|
||||
"items.item.variant.manage_inventory",
|
||||
"items.item.variant.inventory_items.inventory_item_id",
|
||||
"items.item.variant.inventory_items.required_quantity",
|
||||
|
||||
@@ -24,6 +24,7 @@ export async function getVariantInventoryItems({
|
||||
fields: [
|
||||
"variant_id",
|
||||
"variant.manage_inventory",
|
||||
"variant.allow_backorder",
|
||||
"required_quantity",
|
||||
"inventory.*",
|
||||
"inventory.location_levels.*",
|
||||
|
||||
Reference in New Issue
Block a user