Schedule MacroRIS-SM-2289 – Order Move to Stock Available Location

Order Move to Stock Available Location (Multi-Location Auto-Move Logic)

Automatically checks stock across multiple warehouses, selects the best location with full availability, and moves orders accordingly to optimize fulfilment.

Overview

The RIS-SM-2289 – Order Move to Stock Available Location macro intelligently routes orders to the most suitable warehouse by checking stock availability across all locations.

It ensures orders are fulfilled from the correct location without manual intervention.

Configure priority locations if specific warehouses should be preferred during selection.

Purpose

This macro:

  • Checks stock across all locations

  • Identifies the best fulfilment warehouse

  • Moves orders automatically

  • Ensures full stock availability before movement

👉 In short:
Check stock → find best location → move order.

When It Runs

Used for warehouse routing and fulfilment optimization

Typically runs:

  • After order import

  • Before picking and packing

  • In multi-warehouse environments

  • During automated fulfilment workflows

Parameters

path
OrderIdsGUID[]
Required

List of orders to process.

path
PriorityLocationsstring

Optional list of preferred warehouse locations.

path
ReprintLabelsbool

If enabled, clears existing labels and forces reprinting.

If PriorityLocations are not provided, the macro automatically selects the best available location.

How It Works

Start Execution

Logs macro start and validates input orders.

Load Locations

Retrieves all warehouse locations and applies priority logic if provided.

Process Orders

Iterates through each order and skips already processed or invalid ones.

Check Stock Availability

Verifies stock for all items across each location.

Select Best Location

Identifies the location where full order stock is available.

Move Order

Moves the order to the selected warehouse if different from current location.

Skip If Not Required

Keeps order in place if current location already has sufficient stock.

Reprint Labels (Optional)

Clears and regenerates labels if ReprintLabels is enabled.

Mark as Processed

Adds flags and notes to prevent duplicate processing.

Logging

Tracks moved orders, skipped cases, and errors.

Final Result

  • Orders moved to optimal warehouse

  • Stock availability ensured before fulfilment

  • Manual routing eliminated

  • Orders ready for faster processing

Usefulness

This macro is highly beneficial for:

  • Multi-warehouse management

  • Automated order routing

  • Reducing fulfilment delays

  • Preventing stock conflicts

  • Improving operational efficiency

  • Scaling warehouse operations

Important Notes

  • Only moves orders if full stock is available in another location

  • PriorityLocations influence selection logic

  • Already processed orders are skipped

  • Label reprint occurs only if enabled

  • Incorrect configuration may lead to suboptimal routing

Example Scenario

Key Insight

By dynamically evaluating stock across all locations and routing orders accordingly, this macro ensures faster fulfilment, reduces manual effort, and optimizes inventory utilization across warehouses.