Configure Stock on Hand

Description

As an implementer, I want the option to include and configure the "Stock on Hand" (E) (Current physical count of stock on hand. This is quantified in dispensing units.) so that I know (or can input) the amount of stock I currently have on hand. This provides those authorizing/approving with information on my stock levels and supports the decision making around how much stock is to be ordered.

Options for configuration

  1. Calculation: A + B (+/-) D - C

  2. User Input

Acceptance Criteria
Verify that:

  • the attribute is configurable by users with admin rights

  • users with admin permissions can define If (E) stock on hand is configured to be calculated or user input

    • If E is configured to be calculated A, B, C, D fields are required, if not an error is delivered

      • If E (stock in hand) is configured to be calculated, only C is required (Total Consumed Quantity). I can hide A, B and D fields. If A (beginning balance) and B (Total Received Quantity) are not hidden, they are required, however D (adjustments and losses) don't seem to be required even if not hidden - I don't need to enter any

      • 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 E is configured to be calculated this formula is used A + B (+/-) D - C

    • If E is configured for user input, users can input in numeric quantities in the requisition form

  • during data entry there are quantities for A, B, C and D are required (may be enforced in UI) ()

  • 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.

Letters
A - beginning balance
B - total received quantity
C - total consumed quantity
D - total losses and adjustments

QAlity Plus - Test Management

Checklists

Activity

Paweł GesekOctober 24, 2016 at 9:58 AM

I verified that the calculations work correctly and only if set in the template. The validations match v2, even if both this and total consumed quantity are set to user inputs. I am closing this ticket, will close once the unit test gets extended and javadocs improved.

Pengfei CuiOctober 21, 2016 at 2:14 PM

SUCCESS: Integrated in

OpenLMIS-requisition-service-Sonar #423
OLMIS-838: Update Stock on Hand validation (pmuchowski: b68b2d0883368baeae73b3fe3e3579f73b188dbd)

Pengfei CuiOctober 21, 2016 at 2:08 PM

SUCCESS: Integrated in

OpenLMIS-requisition-service #692
OLMIS-838: Update Stock on Hand validation (pmuchowski: b68b2d0883368baeae73b3fe3e3579f73b188dbd)

Paweł GesekOctober 21, 2016 at 2:02 PM

I've added this criteria:

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

Paweł GesekOctober 21, 2016 at 7:22 AM

update this so it works as v2 (how I described)

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

Details

Assignee

Reporter

Story Points

Time tracking

3d 1h logged

Sprint

Fix versions

Priority

Time Assistant

Created July 13, 2016 at 5:28 PM
Updated November 14, 2016 at 3:29 PM
Resolved October 24, 2016 at 9:57 AM