Requisition print has a different value than the form

Description

Given a user with the appropriate role is in a requisition view
When a user selects the [Print] button
And go to the printed matrix
Then values in the "Calculated order quantity" fields are different than the form.


Issue discovered while executing:

Test Case: Requisitions: Printing requisitions

Execution Date: 15/Apr/2024

Open Execution


Reproduction steps
1. Initiate a regular requisition for Family Planning at home facility.
2. Skip most of the products. Do not skip the products with product code C100 and C200.
3. Enter the data for the products.
4. Click the "Print" button.
5. Return to the product grid and make changes.
6. Click the "Print" button.
7. Submit the requisition.
8. Return to the just-submitted requisition.
9. Change the requested quantity for both products.
10. Click the "Print" button.
11. Return to the product grid and go to the "Non full supply product(s) tab".
12. Add a product.
13. Click the "Print" button.
14. Return to the requisition and submit and authorize it.
15. Go to Requisitions > Approve and click the "View Requisition" button next to it.
16. Set the approved quantity for the products.
17. Click the "Print" button.
18. Approve the requisition.
19. Navigate to Requisitions > View, find the previously-approved requisition and click the "View Requisition" button next to it.
20. Click the "Print" button. Failed
Expected: In a new tab, the printed requisition should be generated. It should contain the same data as on the UI.
Comment: Incorrect values in the printed 'Calculated order quantity' fields

Environment

uat.openlmis.org

Attachments

9

Checklists

Activity

Krzysztof Pokrywka 
April 18, 2024 at 11:46 AM

Test Result:


Test Data:

  • Environment:

  • Test User: Administrator

  • Requisition

    • Facility: Comfort Health Clinic

    • Program: Family Planning


Screenshots:

Status of the requisition

Form view

Print view

Initiated

Submited

Approved

Authorized

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

Details

Assignee

Reporter

Original estimate

Time tracking

5h logged

Priority

Time Assistant

Created April 15, 2024 at 1:41 PM
Updated April 18, 2024 at 11:47 AM