Skip to main content

Overview

The Rules page allows you to create and manage replenishment rules that control ordering behavior for specific item and location combinations. Rules ensure business logic and promotional strategies are automatically enforced during the ordering process.

Accessing Rules

Navigate to Restock > Data Management > Rules (/restock/data-management/rules) to access the rules management interface. You can view rules in two modes:
  • Grid View: See all rules in a searchable, sortable table
  • Card View: Detailed view of a single rule with tabs for items, locations, and settings

Rule Types

Blocking Rules

Blocking rules prevent orders from being placed for specific item/location combinations during a defined period. Common Uses:
  • Block seasonal items outside their season
  • Prevent ordering discontinued items
  • Enforce location-specific product restrictions
  • Implement temporary holds for quality issues
  • Control new product rollouts to specific locations

Promotion Rules

Promotion rules enforce minimum order quantities for items on promotion, ensuring adequate stock during promotional periods. Common Uses:
  • Set quantity floors for promotional items
  • Ensure minimum display quantities for featured products
  • Support marketing campaigns with guaranteed availability
  • Coordinate with sales events and advertising

Rules Grid View

The default grid view displays all rules with sortable columns and search capabilities.

Grid Columns

ColumnDescription
Rule NameDescriptive name for the rule
DescriptionOptional details about the rule’s purpose
Rule TypeBLOCKING or PROMOTION
Start DateWhen the rule becomes active
End DateWhen the rule expires (optional)
Item CountNumber of items linked to this rule
Location CountNumber of locations linked to this rule
StatusACTIVE, INACTIVE, or other status values
Use the search bar to quickly find rules by name. You can also sort columns by clicking the header.

Accessing Rules

From Grid View:
  • Click any rule row to open the edit modal
  • Click Add Rule button to create a new rule
From Card View:
  • Select a rule from the sidebar to view full details
  • Use the URL parameter to link directly to a rule: /restock/data-management/rules/{ruleID}

Creating a Rule

1

Open Add Rule Form

Click the Add Rule button in the ribbon (green button, top right).
2

Select Rule Type

Choose between:
  • Blocking Rule - Prevents orders
  • Promotion Rule - Enforces minimum quantities
3

Enter Rule Details

Fill in required fields:
  • Name (required) - Descriptive name for the rule
  • Description (optional) - Purpose or context for the rule
  • Start Date (required) - When rule takes effect
  • End Date (optional) - When rule expires
  • Status (required) - ACTIVE, INACTIVE, etc.
4

Link Items

Select which items this rule applies to:
  • Search for items by name or number
  • Select individual items or bulk select
  • View linked items count in the Items tab
5

Link Locations

Select which locations this rule applies to:
  • Search for locations by name or code
  • Select individual locations or groups
  • View linked locations count in the Locations tab
6

Set Promotion Quantity Floor (Promotion Rules Only)

For promotion rules, specify the minimum order quantity that must be met.
7

Save Rule

Click Save to create the rule. It will appear in the grid and become active based on the start date.
Rules take effect immediately if the start date is in the past or present. Future-dated rules activate automatically on their start date.

Editing a Rule

1

Select Rule

Click on the rule row in the grid, or select from the sidebar in card view.
2

Modify Fields

Update any editable fields:
  • Name and description
  • Start and end dates
  • Status (activate/deactivate)
  • Linked items and locations
  • Quantity floor (promotion rules only)
3

Save Changes

Click Save to apply changes. The rule updates immediately.

Card View Details

Card view provides a comprehensive interface for managing a single rule with three tabs:

Details Tab

View and edit core rule information:
  • Rule name and description
  • Rule type (blocking or promotion)
  • Start and end dates
  • Status
  • Quantity floor (promotion rules)
  • Created and updated timestamps

Items Tab

Manage which items the rule applies to:
  • Search and filter: Find items by name, number, or category
  • Bulk select: Choose multiple items at once
  • View linked items: See all currently linked items
  • Add/remove: Update item associations as needed
Item Details Shown:
  • Item name and number
  • Description
  • Category or classification
  • Current link status

Locations Tab

Manage which locations the rule applies to:
  • Search and filter: Find locations by name, code, or region
  • Bulk select: Choose multiple locations at once
  • View linked locations: See all currently linked locations
  • Add/remove: Update location associations as needed
Location Details Shown:
  • Location name and code
  • Address or region
  • Store type or classification
  • Current link status
Use the sidebar in card view to quickly switch between rules without returning to the grid.

Rule Status Management

Rules can have different statuses that control their behavior:

Active Status

  • ACTIVE: Rule is enforced during orders
  • INACTIVE: Rule exists but is not enforced
  • Other statuses: May be used for workflows (e.g., PENDING, EXPIRED)

Activating a Rule

1

Open Rule

Select the rule from the grid or card view.
2

Change Status

Update the Status field to ACTIVE.
3

Save

Click Save - the rule begins enforcing immediately (if start date has passed).

Deactivating a Rule

1

Open Rule

Select the rule from the grid or card view.
2

Change Status

Update the Status field to INACTIVE.
3

Save

Click Save - the rule stops enforcing immediately.
Deactivating a rule does not delete it. You can reactivate it later without recreating the item and location associations.

Deleting a Rule

Deleting a rule is permanent and cannot be undone. All item and location associations are removed.
1

Open Rule

Select the rule you want to delete from the grid or card view.
2

Click Delete

Click the Delete button at the bottom of the form.
3

Confirm Deletion

Review the confirmation dialog, then click Delete to confirm.
Consider deactivating rules instead of deleting them to preserve historical data and enable easy reactivation.

How Rules Affect Ordering

In the Orders Grid

When viewing the Orders page (/restock/data-management/orders): Blocking Rules:
  • Items with blocking rules show the Blocking Rule IDs column populated
  • Order quantity fields are prevented from being edited for blocked combinations
  • Blocked items are typically filtered out or visually indicated
Promotion Rules:
  • Items with promotion rules show the Promotion Rule IDs column populated
  • The system validates that order quantities meet the promotion quantity floor
  • If you attempt to order less than the minimum, a warning or error appears

Rule Priority

  • Blocking rules override promotion rules: If both apply, the item is blocked
  • Multiple rules per item: An item can be affected by multiple rules simultaneously
  • Location-specific: Rules apply only to the specific item/location combinations defined

Best Practices

Rule Naming

  • Use clear, descriptive names that indicate purpose: “Summer-2026-Seasonal-Block”, “March-Promo-Min-50”
  • Include dates or seasons in the name for time-bound rules
  • Use consistent naming conventions across your organization

Date Management

  • Set realistic start dates: Rules activate immediately if start date is past
  • Use end dates for temporary rules: Promotions, seasonal blocks, temporary holds
  • No end date for permanent rules: Items discontinued indefinitely, location restrictions
  • Review expired rules periodically: Clean up old rules to keep the list manageable

Item and Location Linking

  • Start broad, refine narrow: Begin with categories or regions, then add exceptions
  • Document exceptions: Use description field to note why specific items/locations are included
  • Regular audits: Review linked items and locations quarterly to ensure accuracy
  • Test before activating: Create rules in INACTIVE status, verify associations, then activate

Status Workflow

Recommended Status Workflow

  1. Create rule in INACTIVE status
  2. Configure items, locations, and dates
  3. Review with stakeholders if needed
  4. Activate when ready to enforce
  5. Monitor impact during first ordering cycle
  6. Adjust or deactivate if issues arise
  7. Archive (deactivate) when no longer needed

Promotion Rule Strategy

  • Align with marketing: Coordinate promotion rules with advertising campaigns
  • Set realistic minimums: Quantity floors should balance stock needs with logistics
  • Stagger start dates: Avoid activating all promotions simultaneously
  • Plan for inventory: Ensure sufficient inventory before promotion starts

Blocking Rule Strategy

  • Seasonal precision: Block items well before season ends to avoid excess inventory
  • Communicate blocks: Notify buyers when blocking rules are activated
  • Temporary vs permanent: Use end dates for temporary situations, no end date for permanent blocks
  • Quality hold process: Establish procedures for blocking items with quality issues

Common Use Cases

Seasonal Item Management

Winter Holiday Blocks
  • Block holiday items starting February 1st
  • Prevents ordering out-of-season products
  • Automatic expiration for next season
Example Rule:
  • Name: “Holiday-2025-Post-Season-Block”
  • Type: Blocking
  • Start: February 1, 2025
  • End: November 1, 2025
  • Items: All holiday-tagged items

Promotional Campaigns

Spring Sale Minimums
  • Enforce minimum order quantities during promotional period
  • Ensure adequate stock for advertised items
  • Automatic expiration when promotion ends
Example Rule:
  • Name: “Spring-Sale-2026-Min-Qty”
  • Type: Promotion
  • Start: April 1, 2026
  • End: April 30, 2026
  • Quantity Floor: 50 units
  • Items: Featured promotional SKUs

New Product Rollout

Controlled Launch
  • Block new products from general distribution
  • Allow orders only to pilot locations
  • Gradual expansion as product matures
Example Rule:
  • Name: “New-Product-ABC-Pilot-Only”
  • Type: Blocking (with exceptions)
  • Start: January 1, 2026
  • End: March 31, 2026
  • Items: Product ABC
  • Locations: All except pilot stores (inverse logic via separate allowlist)

Location-Specific Restrictions

Regional Compliance
  • Block items that cannot be sold in certain states or regions
  • Permanent blocks for regulatory compliance
  • No end date - ongoing restriction
Example Rule:
  • Name: “CA-Restricted-Items”
  • Type: Blocking
  • Start: January 1, 2020
  • End: None
  • Items: Restricted SKUs
  • Locations: All California stores

Troubleshooting

Rule Not Enforcing

Check:
  • Status is ACTIVE
  • Start date is in the past or present
  • Items and locations are correctly linked
  • No conflicting rules override it

Cannot Order Expected Quantity

Check:
  • Look for blocking rule IDs in the Orders grid
  • Verify the rule dates (may have auto-activated)
  • Check if promotion rule quantity floor is too high
  • Review rule description for context

Too Many Items Blocked

Check:
  • Review item associations - may be overly broad
  • Check for duplicate or overlapping rules
  • Verify date ranges are correct
  • Consider temporarily deactivating while you investigate