Incorrect data in the reports on the View Order screen


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.




Joanna Bebak
April 9, 2020, 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, 9:31 AM

is this a task or a bug?

Sam Im
October 23, 2018, 9:23 PM

This has been updated as a task, as discussed, the test case for view orders. I was not able to produce a bug, and the shipment view matches what was fulfilled.

Joanna Szymańska
October 3, 2018, 6:02 AM

While checking OLMIS-3044, the same bug appears: in reports from View Orders other values ​​appear than those that were listed as "Approved Quantity" in Convert to Order.
I noticed that products with codes C100, C200 each time in "Ordered Quantity" have the value 1 regardless of the value entered in "Approved Quantity".




Joanna Bebak