Wiki Spaces


Get Help from Others

Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack


Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


This is allowed so that the system does not get in the way of work that needs to be done however . However, it is important to note that if this is allowed to go unchecked this it will result in data that is meaningless. If the inventory system indicates a different item stock quantity than actually exists, there are two ways to correct this:

  1. An adjustment operation can be created to update the system quantites to match the actual quantities.
  2. The missing operations can be created to bring the item stock quantities to the expected values. This assumes that there was not some extra-system reason why the quantities are different (ie, theft or a typo).
titleBest Practice
The second of these options is almost always preferable as it reflects what actually occurred rather than just adjusting the quantities to "magically" match. A future version of the inventory module will support creating historical stock operation that can be applied so that all subsequent stock operations get updated appropriately.

Item Stock Detail

The item stock quantities that can be viewed on the stockroom detail page can be a little deceptive. The item stock quantity is actually broken down by both the item stock expiration date (if there is one) and the originating operation (called the Batch Operation), we call the the Item Stock Detail. These details are not currently visible in on the Stockoom detail but page where only the cumulative total for each item stock is visible, but the item stock details will be added in a future version.

When transferring or distributing item stock it is currently assumed that item stock from the oldest batch operation are moved first and then, if there is still any remaining quantity to move, the next oldest item stock batch operation is used and so on. The same logic applies for item stock with an expiration, except that the item stock that will expire the soonest is chosen and users can select specific item stock with a specific automatically chosen unless the user selects expiration when creating a new stock operation.


When Auto is selected rather than a specific expiration the system will satisfy the item stock request from the closest expiration first, then the next closest, and so on until the requested quantity has been met.

titleBest Practice
Unless there is some specific reason that the closest to expire item stock is not being transfered or distributed, the Auto option should be selected


. This allows the system to self correct in the situation where the quantity becomes negative and the missing operations are then created.

When viewing a stock operation with item stock details that were automatically selected the details will not show the specific batch or expiration, instead they will be listed as (Auto).