Configure Total Consumed Quantity

Description

As an implementer, I want the option to include and configure the "Total Consumed Quantity" attribute (Quantity dispensed/consumed in the last reporting period. This is quantified in dispensing units) so that storeroom managers can use the information when determining the requested quantities and supervisors understand the amount of inventory consumed/dispensed in the last period at the facilities when approving/reviewing requisitions.

Looking forward: when we have an electronic stock card (ESC), this attribute will have the additional option to link directly to the ESC to calculate this value. For now we will focus on implementers using paper stock cards, which means a manual input from their records OR being calculated based on other inputs/columns.

Acceptance Criteria
Verify that:

  • the attribute can either be user input or calculated

  • calculation follows A + B (+/-) D - E

    • A = Beginning Balance

    • B = Total Received Quantity

    • D = Total Losses/Adjustments

    • E = Stock on Hand

  • users can rename the attribute

  • if user input is selected, users can only input non negative intergers

  • the attribute is displayed in the defined order on the form

  • if this attribute is selected for the form and the calculation option, all dependent attributes need to be configured to be displayed (A, B, D, and E)

  • if this attribute is selected for the form and the calculation option, then the stock in hand needs to be configured to displayed as user input

    • -If calculated, a requisition cannot be submitted (status = submitted) if A, B, D and E are not filled on the requisition form -

      • If E (stock in hand) and C (Total Consumed Quantity) are both configured as user inputs, the validation of E=A+B(+/-)D-C should still be enforced

    • If calculated, stock on hand is required to be entered (it cannot be hidden).

  • appropriate permissions are enforced

  • data validations should match the current 2.0 functionality

  • if calculates to a negative value, validation should not allow submitting such a requisition

QAlity Plus - Test Management

Checklists

Activity

Paweł Gesek 
October 24, 2016 at 12:32 PM

I verified that the issues have been addressed. I tested this already while testing

Paweł Gesek 
October 24, 2016 at 9:58 AM

address the review comments

Pengfei Cui 
October 22, 2016 at 11:28 AM

SUCCESS: Integrated in

OpenLMIS-requisition-service-Sonar #432
FEOLMIS-383: Fix wrongly added comments (pmuchowski: c995d330be8aaad0962fcee51bd628cf2e859d2e)

Pengfei Cui 
October 22, 2016 at 11:22 AM

SUCCESS: Integrated in

OpenLMIS-requisition-service #700
FEOLMIS-383: Fix wrongly added comments (pmuchowski: c995d330be8aaad0962fcee51bd628cf2e859d2e)

Pengfei Cui 
October 22, 2016 at 11:15 AM

SUCCESS: Integrated in

OpenLMIS-requisition-service-Sonar #431
OLMIS-814: Add calculated fields validation (pmuchowski: 7fd5aa69ea790bb8fba4ef6e0696448b68879540)

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

Details

Assignee

Reporter

Story Points

Original estimate

Time tracking

1w 1d 2h logged

Components

Sprint

Fix versions

Priority

Time Assistant

Created July 6, 2016 at 11:17 PM
Updated November 14, 2016 at 3:28 PM
Resolved October 24, 2016 at 12:31 PM