Configure Total Received Quantity attribute

Description

As an implementer, I want the option to include and configure the "total received quantity" attribute (Total quantity received in last 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 received in the last period at the facilities when approving/reviewing requisitions.

Looking forward: when we have an electronic stock card (that includes receiving supplies), or extension points to a third party system, this attribute will have the option to select an import from the OpenLMIS electronic stock card or potentially a third party system (extension point). For now we will focus on implementers using paper stock cards, which means a manual input from their receiving receipts.

Acceptance Criteria
Verify that:

  • the source of data is user input (at this time)

  • only non-negative and integer are allowed

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

  • data entry validations should match the current 2.0 functionality (please check)

Additional note: please view the configuration requisition template attached to the epic to see the interconnection with other requisition attributes.

Attachments

6

QAlity Plus - Test Management

Checklists

Activity

Show:

Paweł Gesek October 18, 2016 at 6:02 PM

I verified that the:
1) Is in the template
2) The source is user input
3) The field is mandatory
4) Doesn't accept negative numbers

I used the requisition submit endpoint for verification.

Jakub Kondrat October 10, 2016 at 10:05 AM
Edited

I've added Total Received Quantity" to the available requisition columns. To verify that:
1. Create requisitionTemplate
2. Create requisitionTemplateColumn with columnDefinition: "5ba8b72d-277a-4da8-b10a-23f0cda23cb4"
3. Create requisitionLines with set totalReceivedQuantity value
4. Create a requisition and add requisitionLines to it
5. Submit previously created requisition
6. Verify that totalReceivedQuantity is validated with its template column

Pengfei Cui October 4, 2016 at 3:33 PM

SUCCESS: Integrated in

OpenLMIS-requisition-service-Sonar #288
Adding indicator - Total Received Quantity (jkondrat: 33d730ffef7d7a49cc2c05af56630b562a1c4207)
Fixing wrong field order in initial_data.sql (jkondrat: 7fe3a54d49cbcb29524b0a8196a1a441f6e267b7)

Pengfei Cui October 4, 2016 at 3:31 PM

SUCCESS: Integrated in

OpenLMIS-requisition-service #543
Fixing wrong field order in initial_data.sql (jkondrat: 7fe3a54d49cbcb29524b0a8196a1a441f6e267b7)

Pengfei Cui October 4, 2016 at 3:26 PM

SUCCESS: Integrated in

OpenLMIS-requisition-service #542
Adding indicator - Total Received Quantity (jkondrat: 33d730ffef7d7a49cc2c05af56630b562a1c4207)

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

Details

Assignee

Reporter

Story Points

Original estimate

Time tracking

2d 6h 30m logged

Components

Sprint

Fix versions

Priority

Time Assistant

Created July 6, 2016 at 10:53 PM
Updated October 24, 2016 at 4:35 PM
Resolved October 18, 2016 at 6:03 PM