Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

estimatedDaysOfStock: a server-calculated field processed for inventory item adjustments #6

Closed
tangollama opened this issue Dec 11, 2015 · 2 comments

Comments

@tangollama
Copy link
Member

One of the objectives of the inventory system is to help hospital admins know what items are and are not in danger of stocking out. To support this, we added a rank field (A,B,C) through the following issues for frontend:

HospitalRun/hospitalrun-frontend#207
HospitalRun/hospitalrun-frontend#209

Related to this PR (HospitalRun/hospitalrun-frontend#232), we now need a new calculated field on an item that is recalculated each time stock is adjusted that estimates the number of days left of stock.

screen shot 2015-12-11 at 1 31 39 pm

Essentially, we need to run the Days Supply Left In Stock report for a given item for the last year of activity and then stores that value in a field called estimatedDaysOfStock. That will allow the stock "condition" calculated field to accurately represent both the relative importance and quantity of a stock item.

@stale
Copy link

stale bot commented Aug 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Aug 7, 2019
@fox1t fox1t self-assigned this Aug 7, 2019
@stale
Copy link

stale bot commented Oct 6, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Oct 6, 2019
@fox1t fox1t closed this as completed Jan 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants