Configure Maximum Stock Quantity

Description

As an implementer, I want the option to include "Maximum Stock Quantity" (H) attribute in the requisition template (to display throughout the workflow) so that the storeroom manager/approvers can see the maximum quantity of stock that the facility should have on hand to inform the requested quantities.

Definition: Maximum stock calculated based on consumption and max stock parameters. This is quantified in dispensing units.

Note: we would like to change the MaxMonthsStock attribute name so not to imply months when it could mean periods. being done in

Looking forward
A potential extension point here. An implementor may want to define their own formula for calculating the maximum stock quantity attribute. Would need to be able to extend. We will create a new ticket to add the extension point. Or want to add in F into this calculation.

Acceptance Criteria
Verify that:

  • the Maximum Stock Quantity (H) can be added and configured to a Requisition template for a specific program

  • the attribute is calculated, but which calculation is based on user selection (or extension point), so there needs to be mechanism for the user to select from the following options (please check the following calculations) (instead of providing options, for now we will just implement the default):

    • "Default" option is calculated by P * MaxMonthsStock, where P = Average Consumption

    • "Normalized Consumption x 2" is calculated by N * 2

    • "Dispensed Quantity x 2" is calculated by (Need input from JSI or someone to know what 'dispensed quantity refers to)

  • if attribute is selected for the template, the attribute is displayed in the defined order on the requisition form

  • if attribute is not selected, it does not appear on the requisition form

  • the attribute can be assigned a display order (currently moving up and down but at this time just needs an display order attribute)

  • the display order is enforced in the requisition form

  • user permissions are enforced

  • API endpoints would allow for future extension on the calculation (similar to AMC )

Additional information on max months of stock
An implementor defines max months of stock for a product, in a program, for a facility type. It’s part of a Facility Type Approved Product aka Facility Approved Product. The idea is this: for a full-supply product at a regional hospital (facility type), you might want to approve them to be supplied with bottles of 500 pills of Ibuprofen 500mg (product’s pack) and that they can have up to 3 months of stock (using either consumption or target population as the basis for calculating per month needs). It’s per facility type as a district hospital may not be allowed to be supplied with the 500 pill bottles, but rather the 50 pill bottles, and they should only have 2 months of stock.

Attachments

22
100% Done
Loading...

QAlity Plus - Test Management

Checklists

Activity

Paweł GesekJanuary 30, 2017 at 3:41 PM

I verified that the demo data was update - we can close this

Łukasz LewczyńskiJanuary 30, 2017 at 3:39 PM

I updated demo data and created review.

Paweł GesekJanuary 30, 2017 at 3:37 PM

If this a single line to change in demo data, but no changes to logic, then I can review it and close this - no need to retest it.

Anna CzyrkoJanuary 30, 2017 at 3:24 PM
Edited

To sum up
Only for requisition with id: 6167e65c-6f56-4aeb-bff5-fdfe84e01a21 it does not work, I think it is problem with demodata, can you fix it?

For requisitions with id: b42fafc1-8b4b-4671-a7a0-abe5fa0a2419 and id: e6799d64-d10d-4011-b8c2-0e4d4a3f65ce all works

Update: I retest it for 6 other requisitions and all works - only this one does not work ( id: 6167e65c-6f56-4aeb-bff5-fdfe84e01a21)

Anna CzyrkoJanuary 30, 2017 at 3:22 PM

For requisition with id: e6799d64-d10d-4011-b8c2-0e4d4a3f65ce and program Family Planning

For C400 Average Consumption = 422 , maxMonthOfStock= 500 , Maximum stock quantity should equal 211000, Maximum stock quantity = 211000
For C600 Average Consumption = 42, maxMonthOfStock= 500, Maximum stock quantity should equal 21000, Maximum stock quantity = 21000
For C100 Average Consumption = 103 , maxMonthOfStock= 1000 , Maximum stock quantity should equal 103000, Maximum stock quantity = 103000
For C200 Average Consumption = 210, maxMonthOfStock= 1000 , Maximum stock quantity should equal 210000, Maximum stock quantity = 210000

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Original estimate

Time tracking

4d 4h logged1d remaining

Components

Sprint

Fix versions

Priority

Time Assistant

Created August 2, 2016 at 9:30 PM
Updated January 31, 2017 at 10:59 AM
Resolved January 30, 2017 at 3:41 PM