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
| Column | Description |
|---|---|
| Rule Name | Descriptive name for the rule |
| Description | Optional details about the rule’s purpose |
| Rule Type | BLOCKING or PROMOTION |
| Start Date | When the rule becomes active |
| End Date | When the rule expires (optional) |
| Item Count | Number of items linked to this rule |
| Location Count | Number of locations linked to this rule |
| Status | ACTIVE, INACTIVE, or other status values |
Accessing Rules
From Grid View:- Click any rule row to open the edit modal
- Click Add Rule button to create a new rule
- 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
Select Rule Type
Choose between:
- Blocking Rule - Prevents orders
- Promotion Rule - Enforces minimum quantities
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.
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
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
Set Promotion Quantity Floor (Promotion Rules Only)
For promotion rules, specify the minimum order quantity that must be met.
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
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)
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 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 name and code
- Address or region
- Store type or classification
- Current link status
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
Deactivating a Rule
Deactivating a rule does not delete it. You can reactivate it later without recreating the item and location associations.
Deleting a Rule
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
- 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
- Create rule in INACTIVE status
- Configure items, locations, and dates
- Review with stakeholders if needed
- Activate when ready to enforce
- Monitor impact during first ordering cycle
- Adjust or deactivate if issues arise
- 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
- 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
- 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
- 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
- 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