Incorrect data in the reports on the View Order screen

Description

I noticed an issue with the PDF and CSV report on the "View Orders" screen when I was testing OLMIS-4943.

In the PDF one, the ordered quantity value doesn't match with the value that was entered in the "Fill Quantity" field when fulfilling the order. Also, the report contains also the products for which it was 0. As for the CSV one, the ordered values also don't match but unfortunately, even the products differ between the report and what was fulfilled. This didn't use to work like that - the data between the "View Shipment" screen and both reports on the "View Orders" page used to match. The issue occurs on both browsers, and no errors are returned on the UI or in the console.

Reproduction steps:

  1. Submit a regular requisition as vsrmanager1.

  2. Approve the requisition as divo1.

  3. Fulfill the order and confirm its shipment.

  4. Go to Orders > View Orders.

  5. Generate the PDF report concerning the just-shipped order.

  6. The "Ordered Quantity" and "Dispensing Units" values are not the same as on the shipment view. Also, products which weren't shipped (for which the "Fill Quantity" was 0) are included in the report.

  7. Return to the "View Orders" screen and generate the CSV report concerning the just-shipped order.

  8. The "Ordered quantity" doesn't match the "Fill Quantity" values from the shipment view. Also, the products don't match.

Expected behavior:

  • The data in the PDF and CSV reports on the "View Orders" screen should match those entered on the shipment view.

Environment

None

Attachments

8

Checklists

Activity

Szymon Rujner 
July 23, 2021 at 12:18 PM

I tested this with different products and different values and I wasn’t able to reproduce this bug.

From my observations, it seems that the discrepancy in the Ordered Quantity values between the PDF/CSV report and the one created in shipment order resulted from the division of products display into Packs and Doses.
For example, Product bgc20 in the Doses tab will display a value of 20, and in Packs tab value will be 1, that’s because there are 20 pieces of this product in 1 Pack.

The list of all products in the CSV and PDF file is correct, there are no additional products that weren’t included in the previous stage.

The only discrepancy is between the PDF file and the CSV file when we enter value “0” in Ordered Quantity for several products. The PDF file lists all products, even those with “0” value, and the CSV file is generated without products with a value of “0”. However this is not a bug, just a different way to generate both files and data in the PDF and CSV reports on the "View Orders" screen matches those entered on the shipment view.

Checked on in Chrome (Version 86.0.4240.198) and Firefox (Version 90.0)

 




Sebastian Brudziński 
July 20, 2021 at 2:18 PM

Can you see if you can find a way to repro this?

Sebastian Brudziński 
July 20, 2021 at 2:18 PM

I tested this with bcg20, polio20, ipv5 with different requisitions and values, and wasn’t able to reproduce this.

Joanna Bebak 
April 9, 2020 at 9:33 AM

This is definitely a bug. I don't understand why it was changed to task. I'll change it again.

Sebastian Brudziński 
April 9, 2020 at 9:31 AM

is this a task or a bug?

Won't Fix
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Priority

Time Assistant

Created September 28, 2018 at 11:30 AM
Updated February 8, 2023 at 1:28 PM
Resolved July 23, 2021 at 1:54 PM