Remove Order Lines to Be Purchased

Unmark order lines for purchase order creation when they are shipped, picked up or canceled.

Overview

The Remove Order Lines to Be Purchased step unmarks order lines for purchase order creation. Can be used on order statuses where order is shipped, picked up or canceled, it should no longer show up as a purchase order suggestion or as awaiting a purchase order. This step is the counterpart of Set All Order Lines Not Reserved to Be Purchased.

Identifier

PropertyValue
KeyRemoveOrderLinesToBePurchased
GroupReallocate
Applicable StatusesShip, PickedUp, OrderCanceled

Configuration Properties

This step has no configuration properties.

Behavior

What It Does

For each affected order line, the step:

  • Sets CreatePurchaseOrder = false
  • Sets IsAwaitingPurchaseOrder = null

Shipment Scope

ExecutedAffected lines
Per shipmentThe line items of the current shipment, and the order-form line items with the same LineItemId. Lines on other shipments are left as they are.
On the whole orderAll order-form line items, and the line items of every shipment.

Side Effects

  • Inventory reservation fields (ReservedInventory, ReservedInventoryQuantity, ReservedInventoryPurchaseOrderId and so on) are not changed. Use the RemoveOrderLineReservations step to clear those.
  • Existing purchase orders are not changed or canceled.

Business Cases

When to Use

  • Shipped from stock: A line was marked to be purchased, but was shipped from stock before a purchase order was created.
  • Picked up in store: The customer picked up the line, so no purchase order is needed.
  • Canceled orders: A canceled line should not create a purchase order.

Example Scenarios

Scenario 1: Order shipped in several shipments An order is split into two shipments, and both shipments' lines are marked to be purchased. When the first shipment moves to Ship, the step runs per shipment and unmarks only that shipment's lines. The second shipment is still a purchase order suggestion.

Scenario 2: Canceled order A customer cancels an order with lines waiting for a purchase order. When the order moves to OrderCanceled, the step unmarks every line, so the lines no longer show up as purchase order suggestions.

Error Handling

ConditionResultContinues Workflow?
No line itemsWarningYes
Lines unmarkedSuccess with count messageYes

On this page