Done
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Sebastian Brudziński
Sebastian BrudzińskiReporter
Mary Jo Kochendorfer
Mary Jo Kochendorfer(Deactivated)Story Points
5
Original estimate
2d
Time tracking
Components
Sprint
Add sprint
Fix versions
Priority
Time Assistant
Time Assistant
Created January 19, 2017 at 8:08 PM
Updated February 15, 2017 at 5:32 PM
Resolved February 15, 2017 at 12:53 PM
As a storeroom manager, I would like the received quantities entered when a 'submit POD' occurs to populate the next regular requisitions so that I don't need to manually populate that information twice.
Next requisitions is determined by the subsequent period + (same program and same facility)
The requisition checks for a POD submitted against the previous period.
for example, if a Regular (type) Family Planning (program) Requisition (ID: ABC) is approved for the period July 2017 at the Comfort Health Clinic. ABC is converted to an order and subsequently the associated POD is submitted with the "Quantities Received" (mapping to the LineItems requisitioned). In the next regular period (August 2017) when a user initiates a requisition, if there are "Quantities Received" values from the July 2017 POD, it would initiate the requisition with those quantities populated into the Received(B) field of requisition line items (matching by product).
Acceptance Criteria
When a regular requisition is initiated it will check the POD (associated with the previous period) for "received quantities" for that same facility and program (and only regular, not emergency requisitions).
Note: This logic should happen when the requisition is initiated, not when the POD is filled in, because the next requisition may not exist yet when the POD gets submitted.
The lineItems with quantities entered in the POD Quantity Received will populate the "Received (B)" column in the initiated requisition
If no quantity is entered in the "Quantity Received" on the POD, then no quantity is pulled on the requisition
Once the "Received (B)" on the requisition product grid is initiated, the user can overwrite the quantity from then on. (similar to how beginning balance is populated and allows for manual overwrite after that)
The user input quantity for "Received (B)" on the requisition product grid is what is saved
If the requisition is printed in the "initiated" state the populated values will be printed
Edge case, if the "Received (B)" column is not configured for that program's requisition template, then the "quantity received" will not populate the "Received (B)" column