Set All Order Lines Not Reserved to Be Purchased

Mark order lines with insufficient inventory reservation for purchase order creation.

Overview

The Set All Order Lines Not Reserved to Be Purchased step identifies order lines where the reserved inventory quantity is less than the ordered quantity and marks them for purchase order creation. This enables drop-ship or cross-dock fulfillment workflows.

Identifier

PropertyValue
KeySetAllOrderLinesNotReservedToBePurchased
GroupReallocate
Applicable StatusesNew

Configuration Properties

PropertyTypeRequiredDescription
PrefixstringNoPrefix for purchase order reference
CharacterstringNoSeparator character
MinLengthstringNoMinimum length for reference number

Behavior

What It Does

  1. Iterates through all line items in the order
  2. Skips virtual products (they don't require inventory)
  3. For each line where ReservedInventoryQuantity < Quantity:
    • Sets CreatePurchaseOrder = true on the line item
  4. Returns the count of lines marked for purchase

Prerequisites

  • Order must have line items
  • Inventory reservation should have already been attempted

Side Effects

  • Sets CreatePurchaseOrder = true on affected line items
  • Does not actually create purchase orders (that's a separate step)

Business Cases

When to Use

  • Drop-ship orders: When items should be ordered from suppliers for direct delivery
  • Cross-dock fulfillment: Mark items that need to be ordered to fulfill the customer order
  • Backorder handling: Identify which items need to be procured

Example Scenarios

Scenario 1: Partial Stock An order for 5 units has only 2 reserved. The remaining 3 are marked for purchase order creation.

Scenario 2: Out of Stock An order for an item with zero inventory - the entire quantity is marked for purchase.

Scenario 3: Virtual Products Excluded Gift cards and digital products are skipped since they don't require physical inventory.

Error Handling

ConditionResultContinues Workflow?
No line itemsSuccess (no action)Yes
All items reservedSuccess (no changes)Yes
Some items markedSuccess with count messageYes

On this page