Trigger A Rule When Item Stock Reaches Minimum Quantity Or Zero
Content was last updated in 06.01.04-00
Revision History
Version No. | Reference No. | Changes |
06.01.04-00 | R2-14948 | Trigger a rule when item stock reaches minimum quantity or zero |
Support has been added in R2, to send an alert to the Inventory Manager, whenever the stock of any Product reaches the set minimum quantity threshold so that stock can be replenished through procurements.
Inventory Managers can set minimum quantity threshold for every Item in Item Edit Window. [Example: Prerequisite #1]
This feature works ONLY with a scheduler configured for the defined rule.
A new button ‘Scheduler’ has been added on the Rule Edit Window that defines the frequency in which the system has to verify the conditions of the rules and trigger an alert if satisfied.

Figure 1.0: Scheduler Button On Rule Edit Window

Figure 2.0: Scheduler Dialog Box which defines the frequency rule condition validation
Functionality Covered:
Users can create a rule to compare the current stock at each site with the Minimum Quantity defined for every product separately.
Whenever an item’s availability hits the threshold of Minimum Quantity, the defined recipients are alerted with an email.
The email alert also mentions the Site Information, at which the specific item has reached the threshold limit.
Pre-requisites #1: Products defined with Minimum quantity that defines the threshold level at which alert to be triggered
In R2Core module, define the Minimum Quantity for the Items for which you expect the system to trigger an alert.
To define the Minimum Quantity for any item, do the following steps:
R2Core > Maintenance Module > Search Item.> Item Edit Screen > All Site Details > Specify the Min Qty for the item.

Figure 3.0: Adding Minimum Quantity For An Item
Prerequisite #2: Rules configured in R2 BI module to trigger alert when Items stock goes below minimum quantity set
The rule that triggers the alert should be pre-configured in the system as below:
Got to R2Labor > Main Menu > Manage > Rules > Create.
Select a Data Source [Inventory Master], Action [Notification], and Category [Misc.] using the respective drop-down list.
Select the checkboxes – ‘Deliver on Desktop’, ‘Deliver on Email’, and ‘Active’.

Figure 4.0: Rule Edit Window
Click Add Condition. In the Conditions Window, select the relevant Data Source Description.
Add the applicable values for Fields, Criteria and Compare Value for the rule.

Figure 5.0: Adding Conditions For A Rule
From the Conditions list, select the relevant Data Source Description.

Figure 6.0: Adding Rule Details
Add the applicable Fields, Criteria and Comparison Value for the rule.
Select the checkboxes – ‘Deliver on Desktop’, ‘Deliver on Email’, and ‘Active’.
Add the relevant recipient for the email/alert to be sent.
Configure the alert message/email using the proper template.

Figure 7.0: Email Template For Rule
Save the Rule, by giving it a proper identifiable name.
Sample workflow
Create a new inventory of a sale item with quantity as 100.
Define minimum quantity as 11.
Create a Sale Order and reserve 91 quantity of the newly created item.
Fill and ship the reserved quantity and exit.
Verify the mailbox of the recipient set in the rule configured in the prerequisite#2.
Since the above steps will full fil the condition of the rule defined in prerequisite#2 (Total Quantity < Minimum Quantity), it will get triggered automatically as per the frequency on the schedule tagged to the rule and the mentioned email will be sent to the configured recipients.